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, hasUnsubscribe
public boolean hasSendAndGet()
hasSendAndGet
in interface cMsgSubdomainInterface
hasSendAndGet
in class cMsgSubdomainAdapter
public void setUDLRemainder(java.lang.String UDLRemainder) throws cMsgException
setUDLRemainder
in interface cMsgSubdomainInterface
setUDLRemainder
in class cMsgSubdomainAdapter
UDLRemainder
- last part of the UDL appropriate to the subdomain handlercMsgException
- neverpublic void registerClient(cMsgClientInfo info) throws cMsgException
registerClient
in interface cMsgSubdomainInterface
registerClient
in class cMsgSubdomainAdapter
info
- information about clientcMsgException
- neverpublic void handleSendAndGetRequest(cMsgMessageFull msg) throws cMsgException
handleSendAndGetRequest
in interface cMsgSubdomainInterface
handleSendAndGetRequest
in class cMsgSubdomainAdapter
msg
- message requesting a response messagecMsgException
- if cannot connect to server, cannot send/receive to/from server,
cannot deliver msg to client