|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.interfaceware.chameleon.Hl7ServerSocket com.interfaceware.chameleon.TransportTcpIpServer
public class TransportTcpIpServer
This class is deprecated and should not be used for new applications. It will most likely be removed by about 2010. This class handles TCPIP connections for a server. The constructor instantiates a server socket and which listens for and accepts client connections. Upon accepting a connection, a client socket is created, which is used to instantiate a Connection thread for data input/output.
Field Summary | |
---|---|
protected static int |
DEFAULT_PORT
|
protected static char |
LINE_FEED
|
protected ServerSocketListener |
m_Listener
|
protected Log |
m_Log
|
protected int |
m_Port
|
protected Wrapper |
m_Wrapper
|
Constructor Summary | |
---|---|
TransportTcpIpServer()
Default constructor. |
|
TransportTcpIpServer(int Port,
Wrapper AWrapper)
The main constructor. |
Method Summary | |
---|---|
void |
addLog(Log ALog)
Assign an object which implements the Log interface. |
void |
addServerSocketListener(ServerSocketListener AListener)
Assign an object which implements ServerSocketListener. |
protected void |
errorEvent(java.lang.Exception Error,
java.lang.String Description)
Logs an error. |
protected void |
listenEvent()
Invokes the onListen event on the ServerSocketListener object. |
void |
onError(int ErrorId,
java.lang.String ErrorMessage)
Called when an error occurs. |
Hl7ClientSocket |
onNewConnection(long TransportId)
Called when there is a new connection. |
int |
port()
The TCP/IP port this socket is listening on. |
protected void |
println(java.lang.String Description)
Print a line to the log. |
Methods inherited from class com.interfaceware.chameleon.Hl7ServerSocket |
---|
closeConnection, finalize, hardCloseConnection, listen, onClose, onMessage, onTransportError, sendMessage, stopListening, stopNetworkingThread |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final char LINE_FEED
protected static final int DEFAULT_PORT
protected int m_Port
protected Log m_Log
protected ServerSocketListener m_Listener
protected Wrapper m_Wrapper
Constructor Detail |
---|
public TransportTcpIpServer()
public TransportTcpIpServer(int Port, Wrapper AWrapper)
Method Detail |
---|
protected void println(java.lang.String Description)
public Hl7ClientSocket onNewConnection(long TransportId)
onNewConnection
in class Hl7ServerSocket
protected void listenEvent()
public void onError(int ErrorId, java.lang.String ErrorMessage)
onError
in class Hl7ServerSocket
protected void errorEvent(java.lang.Exception Error, java.lang.String Description)
public void addServerSocketListener(ServerSocketListener AListener)
public void addLog(Log ALog)
public int port()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |