2018. november 2., péntek 6:21:47 UTC+1 időpontban Anirudh Vyas a 
következőt írta:
>
> Hello there - 
>
> I am looking for example/help for using rpc to do file downloads - I am 
> not sure if this is possible, or recommended or if there is a 
> better/cleaner way. I like the robust nature of RPCs and have written a few 
> good, performant distributed systems in them - was hoping/wondering if I 
> could use RPC to do downloads - I currently use combination of io.Copy and 
> a TCP server to do this.
>

What kind of RPC ? RPC is just "Remote Procedure Call".
If s `send(data []byte)` won't be enough (size restrictions), you can copy 
the io interfaces:
CreateFile(name, perms...) (fileHandle)
WriteFile(fileHandle, chunk)
CloseFile(fileHandle)


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to