rero.dcc
public class Send extends ProtocolDCC
Field Summary | |
---|---|
protected long | ackSize |
protected File | dumpFrom |
protected FileInputStream | fileStream |
protected long | finalSize |
protected static int | PACKET_SIZE |
protected long | sentSize |
protected long | startSize |
Constructor Summary | |
---|---|
Send(String _nickname, File _dumpFrom)
Create a ready to rock and roll receive socket. |
Method Summary | |
---|---|
void | fireError(String description) |
void | fireEvent(String event, String description) |
long | getAcknowledgedSize() return the total number of bytes that have been acknowledged by the user |
long | getBytesSent() return the total number of bytes that have been sent |
File | getFile() return the File we are sending to the user |
long | getStartOffset() return the number of bytes that we started out with (0 normally, however in the case of a resume this number could be
anything from 0 up to nearly the size of the file |
long | getTimeRemaining() return the estimated time remaning in seconds |
int | getTransferRate() return the number of bytes transferred per second |
int | getTypeOfDCC() |
boolean | resume(long size) |
void | run() |