Method Summary |
|
public synchronized void | close() |
public InetAddress | getInetAddress() Returns the address to which the socket is connected. |
public CSBufferedInputStream | getInputStream() Get the CSBufferedInputStream associated with this socket. |
public InetAddress | getLocalAddress() Gets the local address to which the socket is bound. |
public int | getLocalPort() Returns the local port to which this socket is bound. |
public OutputStream | getOutputStream() Returns an output stream for this socket. |
public int | getPort() Returns the remote port to which this socket is connected. |
public Socket | getSocket() |
public SocketCache | getSocketCache() Get the socket cache where this CachedSocket is being stored. |
public synchronized int | getState() Return the current socket state. |
public String | getType() Get the type of socket. |
public synchronized void | setActive() Method used to define the socket ACTIVE meaning it's currently in use. |
public synchronized void | setClosed() Method used to mark the socket ready to be closed and cleaned up. |
public synchronized void | setIdle() Method used to define the socket IDLE indicating it's ready for use.
Setting to IDLE state causes a timer to be started. |
public void | setSocketCache(SocketCache socketCache) Set a reference to the Socket Cache so a CachedSocket knows how to remove
itself from the cache. |
public synchronized void | setTimeout(int timeout) Set the timeout value for the socket. |
public void | setType(String socketType) Set the type of socket represented. |
public synchronized void | timeOut() Implementation of the TimerClient interface method. |
public String | toString() Converts this socket to a String. |