|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--aleph.comm.tcp.Connection
|
+--aleph.comm.tcp.TCPConnection
A TCPConnection encapsulates a stream socket to a remote PE.
Connection,
AutoConnection| Fields inherited from class aleph.comm.tcp.Connection |
messagesSent |
| Constructor Summary | |
TCPConnection(Address destination)
Constructor for outgoing connection. |
|
TCPConnection(java.net.Socket socket)
Constructor for incoming connection. |
|
| Method Summary | |
void |
close()
Close socket and let thread die naturally. |
void |
flush()
Flush output stream. |
boolean |
ping()
Ping output stream. |
protected Message |
receive()
Pull in next message. |
void |
send(Message message)
Send a message on this connection. |
| Methods inherited from class aleph.comm.tcp.Connection |
start |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TCPConnection(java.net.Socket socket)
socket - use this socketpublic TCPConnection(Address destination)
destination - partner's AddresslocalHost - my address| Method Detail |
public void close()
public void flush()
public boolean ping()
public void send(Message message)
message - what to send
protected Message receive()
throws java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||