doydwang / barchart-udt

Automatically exported from code.google.com/p/barchart-udt
0 stars 0 forks source link

Support sendfile/recvfile. #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Attached is a very early version of a patch which adds 4 new methods on 
SocketUDT

public long sendFile(String filename, long offset, long limit)
public long sendFile(File file, long offset, long limit)
public long receiveFile(String filename, long offset, long limit)
public long receiveFile(File file, long offset, long limit)

Each method sends/receives the number of bytes specified by limit from/to the 
position specified by offset in the named file.

Original issue reported on code.google.com by dr...@dreid.org on 29 Nov 2011 at 12:52

Attachments: