public class TcpServer extends cMsgSubdomainAdapter
UDL: cMsg://host:port/TcpServer/srvHost:srvPort
| Constructor and Description |
|---|
TcpServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleSendAndGetRequest(cMsgMessageFull msg)
Sends text string to server to execute, returns result.
|
boolean |
hasSendAndGet()
Method to tell if the "sendAndGet" cMsg API function is implemented
by this interface implementation in the "handleSendAndGetRequest"
method.
|
void |
registerClient(cMsgClientInfo info)
Connects to tcpserver.
|
void |
setUDLRemainder(java.lang.String UDLRemainder)
Method to give the subdomain handler the appropriate part
of the UDL the client used to talk to the domain server.
|
handleClientShutdown, handleSendRequest, handleShutdownClientsRequest, handleSubscribeAndGetRequest, handleSubscribeRequest, handleSyncSendRequest, handleUnSendAndGetRequest, handleUnsubscribeAndGetRequest, handleUnsubscribeRequest, hasSend, hasShutdown, hasSubscribe, hasSubscribeAndGet, hasSyncSend, hasUnsubscribepublic boolean hasSendAndGet()
hasSendAndGet in interface cMsgSubdomainInterfacehasSendAndGet in class cMsgSubdomainAdapterpublic void setUDLRemainder(java.lang.String UDLRemainder)
throws cMsgException
setUDLRemainder in interface cMsgSubdomainInterfacesetUDLRemainder in class cMsgSubdomainAdapterUDLRemainder - last part of the UDL appropriate to the subdomain handlercMsgException - neverpublic void registerClient(cMsgClientInfo info) throws cMsgException
registerClient in interface cMsgSubdomainInterfaceregisterClient in class cMsgSubdomainAdapterinfo - information about clientcMsgException - neverpublic void handleSendAndGetRequest(cMsgMessageFull msg) throws cMsgException
handleSendAndGetRequest in interface cMsgSubdomainInterfacehandleSendAndGetRequest in class cMsgSubdomainAdaptermsg - message requesting a response messagecMsgException - if cannot connect to server, cannot send/receive to/from server,
cannot deliver msg to client