public interface cMsgDeliverMessageInterface
Classes that implement this interface provide a means for a subdomain handler object to talk to its client - providing the client with responses to its requests. It is assumed that a single object of this type talks to one specific client. Thus the deliverMessage method does not have an argument specifying the client. The implementing class should store and use this information aside from the use of this interface.
Modifier and Type | Method and Description |
---|---|
void |
close()
Method to close all system resources that need closing.
|
void |
deliverMessage(cMsgMessage msg,
int msgType)
Method to deliver a message from a domain server's subdomain handler to a client.
|
void |
deliverMessage(int i,
int j,
int msgType)
Method to deliver 2 integers from a domain server's subdomain handler to a client.
|
void |
deliverMessage(java.lang.String[] strs,
int msgType)
Method to deliver an array of strings from a domain server's subdomain handler to a client.
|
void close()
void deliverMessage(cMsgMessage msg, int msgType) throws cMsgException, java.io.IOException
msg
- message to sent to clientmsgType
- type of communication with the clientcMsgException
- if cMsg error.java.io.IOException
- if IO error.void deliverMessage(java.lang.String[] strs, int msgType) throws cMsgException, java.io.IOException
strs
- array of strings to sent to clientmsgType
- type of communication with the clientcMsgException
- if cMsg error.java.io.IOException
- if IO error.void deliverMessage(int i, int j, int msgType) throws cMsgException, java.io.IOException
i
- integer to sent to clientj
- integer to sent to clientmsgType
- type of communication with the clientcMsgException
- if cMsg error.java.io.IOException
- if IO error.