org.mbari.siam.utils
Class TCPServer

java.lang.Object
  extended by org.mbari.siam.utils.TCPServer
Direct Known Subclasses:
OSDTTestServer

public class TCPServer
extends java.lang.Object


Nested Class Summary
 class TCPServer.ConnectionWorker
           
 
Field Summary
protected  boolean _isConnected
           
protected static org.apache.log4j.Logger _log4j
           
protected  TCPProtocol _protocol
           
protected  int _socketTimeoutMillisec
           
protected  int _tcpPort
           
 
Constructor Summary
TCPServer()
           
TCPServer(int port, TCPProtocol protocol)
           
TCPServer(int port, TCPProtocol protocol, int timeoutMillisec)
           
 
Method Summary
 boolean isConnected()
           
 void listen()
           
 void quit()
           
 void setTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log4j

protected static org.apache.log4j.Logger _log4j

_tcpPort

protected int _tcpPort

_protocol

protected TCPProtocol _protocol

_socketTimeoutMillisec

protected int _socketTimeoutMillisec

_isConnected

protected boolean _isConnected
Constructor Detail

TCPServer

public TCPServer()

TCPServer

public TCPServer(int port,
                 TCPProtocol protocol)

TCPServer

public TCPServer(int port,
                 TCPProtocol protocol,
                 int timeoutMillisec)
Method Detail

isConnected

public boolean isConnected()

setTimeout

public void setTimeout(int timeout)

quit

public void quit()

listen

public void listen()
            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.