|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
net.jxta.impl.endpoint.tls.JTlsOutputStream
class JTlsOutputStream
Acts as the output for TLS. Accepts ciphertext from TLS and packages it into messages for sending to the remote. The messages are kept in a retry queue until the remote peer acknowledges receipt of the message.
| Field Summary | |
|---|---|
(package private) List |
retrQ
The collection of messages available for re-transmission. |
| Constructor Summary | |
|---|---|
JTlsOutputStream(TlsTransport tp,
TlsConn conn)
|
|
| Method Summary | |
|---|---|
(package private) void |
ackReceived(int seqnum,
int[] sackList)
Process an ACK Message. |
void |
close()
We don't current support linger. |
void |
setClosing()
indicate that we're in the process of closing. |
void |
write(byte[] b,
int off,
int len)
We override the write(byte[], offset, length); method which is called by SSLRecord.send(SSLConn conn) via tos.writeTo(conn.sock_out), tos a ByteArrayOutputStream which has buffered the TLS output record in the byte array. |
void |
write(int c)
|
| Methods inherited from class java.io.OutputStream |
|---|
flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
List retrQ
RetrQElt
| Constructor Detail |
|---|
JTlsOutputStream(TlsTransport tp,
TlsConn conn)
| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOExceptionpublic void setClosing()
public void write(int c)
throws IOException
write in class OutputStreamIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOException
void ackReceived(int seqnum,
int[] sackList)
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||