|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.ExceptionIgnorer
org.pf.net.SocketConnection
public class SocketConnection
Generic superclass for connections on a specific socket (port).
| Constructor Summary | |
|---|---|
SocketConnection(java.net.Socket openSocket)
Initialize the new instance to work on the given socket. |
|
SocketConnection(java.net.Socket openSocket,
ExceptionHandler exHandler)
Initialize the new instance to work on the given socket and use the specified exception handler to report exceptions to. |
|
| Method Summary | |
|---|---|
void |
close()
Close the connection and all release underlying resources. |
boolean |
isClosed()
Returns true, if the connection is closed and can't be used anymore. |
boolean |
isOpen()
Returns true, if the socket connection is open |
| Methods inherited from class org.pf.util.ExceptionIgnorer |
|---|
exceptionOccurred, getExceptionHandler, setExceptionHandler |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketConnection(java.net.Socket openSocket)
public SocketConnection(java.net.Socket openSocket,
ExceptionHandler exHandler)
| Method Detail |
|---|
public boolean isOpen()
public void close()
public boolean isClosed()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||