|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.sam.SAMStreamSession.StreamSender
net.i2p.sam.SAMv2StreamSession.v2StreamSender
protected class SAMv2StreamSession.v2StreamSender
Constructor Summary | |
---|---|
SAMv2StreamSession.v2StreamSender(I2PSocket s,
int id)
|
Method Summary | |
---|---|
void |
run()
|
void |
sendBytes(java.io.InputStream in,
int size)
Send bytes through the SAM STREAM session socket sender |
void |
shutDownGracefully()
Stop a SAM STREAM session socket sender gracefully: stop the sender thread once all pending data has been sent. |
void |
stopRunning()
Stop a SAM STREAM session socket sender thread immediately |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMv2StreamSession.v2StreamSender(I2PSocket s, int id) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void sendBytes(java.io.InputStream in, int size) throws java.io.IOException
sendBytes
in class SAMStreamSession.StreamSender
in
- Data stream of data to sendsize
- Count of bytes to send
java.io.IOException
- if the client didnt provide enough datapublic void stopRunning()
stopRunning
in class SAMStreamSession.StreamSender
public void shutDownGracefully()
shutDownGracefully
in class SAMStreamSession.StreamSender
public void run()
run
in interface java.lang.Runnable
run
in class SAMStreamSession.StreamSender
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |