|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.interfaceware.chameleon.Hl7ServerSocket
public class Hl7ServerSocket
This class is deprecated and should not be used for new applications. This class allows you to connect to hosts and send messages
Constructor Summary | |
---|---|
Hl7ServerSocket()
Construct a Server |
Method Summary | |
---|---|
void |
closeConnection(long TransportId)
Close a connection This does a graceful close which means it is still possible to receive some data that has already been sent by the client. |
protected void |
finalize()
Frees the server handle. |
void |
hardCloseConnection(long TransportId)
Close a connection This does a non-graceful close. |
void |
listen(int Port)
Makes server listen on a specified port. |
void |
onClose(long TransportId)
Called when a connection closes. |
void |
onError(int ErrorId,
java.lang.String ErrorMessage)
Called when an error occurs. |
void |
onMessage(long TransportId,
java.lang.String Message)
Called when a message arrives. |
Hl7ClientSocket |
onNewConnection(long TransportId)
Called when there is a new connection. |
void |
onTransportError(long TransportId,
int ErrorId,
java.lang.String ErrorMessage)
Called when an error occurs on a connection. |
void |
sendMessage(long TransportId,
java.lang.String Message)
Send a message |
void |
stopListening()
Stops the server from listening |
static void |
stopNetworkingThread()
Call this method to stop the networking thread |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hl7ServerSocket()
ChameleonException
Method Detail |
---|
protected void finalize() throws ChameleonException
finalize
in class java.lang.Object
ChameleonException
public void listen(int Port) throws ChameleonException
ChameleonException
public void stopListening() throws ChameleonException
ChameleonException
public void sendMessage(long TransportId, java.lang.String Message) throws ChameleonException
ChameleonException
public void closeConnection(long TransportId) throws ChameleonException
ChameleonException
public void hardCloseConnection(long TransportId) throws ChameleonException
ChameleonException
public Hl7ClientSocket onNewConnection(long TransportId)
public void onError(int ErrorId, java.lang.String ErrorMessage)
public void onTransportError(long TransportId, int ErrorId, java.lang.String ErrorMessage)
public void onClose(long TransportId)
public void onMessage(long TransportId, java.lang.String Message)
public static void stopNetworkingThread() throws ChameleonException
ChameleonException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |