|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrero.dcc.ProtocolDCC
rero.dcc.Send
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
|
Fields inherited from class rero.dcc.ProtocolDCC |
DCC_CHAT, DCC_RECEIVE, DCC_SEND, DCC_TIMEOUT, dispatcher, eventData, idleTime, nickname, socket, startTime, state, STATE_CLOSED, STATE_OPEN, STATE_WAIT |
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()
return the type of DCC based on a constant |
boolean |
resume(long size)
|
void |
run()
|
Methods inherited from class rero.dcc.ProtocolDCC |
announceFramework, close, getIdleTime, getLocalPort, getNickname, getPort, getRemoteAddress, getStartTime, getState, getTotalTime, isConnected, setDCCSocket |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static int PACKET_SIZE
protected File dumpFrom
protected FileInputStream fileStream
protected long sentSize
protected long ackSize
protected long finalSize
protected long startSize
Constructor Detail |
public Send(String _nickname, File _dumpFrom)
Method Detail |
public boolean resume(long size)
public long getBytesSent()
public long getAcknowledgedSize()
public File getFile()
public long getStartOffset()
public long getTimeRemaining()
public int getTransferRate()
public int getTypeOfDCC()
ProtocolDCC
getTypeOfDCC
in class ProtocolDCC
public void run()
run
in class ProtocolDCC
public void fireError(String description)
fireError
in class ProtocolDCC
public void fireEvent(String event, String description)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |