|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anotheria.net.shared.server.AbstractConnection
net.anotheria.net.tcp.server.AbstractTCPConnection
public abstract class AbstractTCPConnection
Base class for TCP connections.
| Constructor Summary | |
|---|---|
protected |
AbstractTCPConnection(Socket aSocket)
Creates a new AbstractTCPConnection tied to a socket. |
| Method Summary | |
|---|---|
void |
close()
Closes the connection. |
protected Socket |
getSocket()
Returns the underlying socket. |
void |
open()
Opens a connection and creates a reader. |
protected void |
setSocket(Socket socket)
Sets the socket for this connection. |
| Methods inherited from class net.anotheria.net.shared.server.AbstractConnection |
|---|
addConnectionListener, removeConnectionListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Constructor Detail |
|---|
protected AbstractTCPConnection(Socket aSocket)
aSocket - the socket to tie the connection to| Method Detail |
|---|
public void close()
close in interface IConnectionclose in class AbstractConnectionpublic void open()
open in interface IConnectionopen in class AbstractConnectionprotected Socket getSocket()
protected void setSocket(Socket socket)
socket - the socket to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||