|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.sam.SAMStreamSession.StreamSender
protected class SAMStreamSession.StreamSender
Lets us push data through the stream without blocking, (even after exceeding the I2PSocket's buffer)
| Constructor Summary | |
|---|---|
SAMStreamSession.StreamSender(I2PSocket s,
int id)
|
|
| Method Summary | |
|---|---|
void |
run()
|
void |
sendBytes(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 SAMStreamSession.StreamSender(I2PSocket s,
int id)
throws IOException
IOException| Method Detail |
|---|
public void sendBytes(InputStream in,
int size)
throws IOException
in - Data input streamsize - Count of bytes to send
IOException - if the client didnt provide enough datapublic void stopRunning()
public void shutDownGracefully()
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||