|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--zyneo.sms.gateway.adaptor.xml.tcp.client.ReceiveConnection
Receives a Status report or Sms-message
Field Summary | |
protected ServerConnection |
m_con
|
protected int |
m_framedelay
|
protected java.lang.String |
m_host
|
protected Category |
m_log
|
protected int |
m_port
|
Constructor Summary | |
ReceiveConnection(java.lang.String host,
int port)
Constructor |
|
ReceiveConnection(java.lang.String host,
int port,
int framedelay)
Constructor |
Method Summary | |
java.lang.Object |
receive()
Receives one Sms or Status report, if none availible this method will block. |
java.lang.Object |
receivenb(int n)
Receives one Sms or Notification, if none availible then this method will block for the timeout specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String m_host
protected int m_port
protected int m_framedelay
protected ServerConnection m_con
protected Category m_log
Constructor Detail |
public ReceiveConnection(java.lang.String host, int port)
host
- Running the gatewayport
- Tcp-port on which the XML/tcp Receive Adaptor listens.public ReceiveConnection(java.lang.String host, int port, int framedelay)
host
- Running the gatewayport
- Tcp-port on which the XML/tcp Receive Adaptor listens.framedelay
- The maximum time between two bytes in
an xml-frame.Method Detail |
public java.lang.Object receive() throws RequestException, java.io.IOException, java.net.UnknownHostException
RequestException,IOException,UnknownHostException
RequestException
java.io.IOException
java.net.UnknownHostException
public java.lang.Object receivenb(int n) throws RequestException, java.io.IOException, java.net.UnknownHostException
n
- Timeout in milliseconds to wait
RequestException,IOException,UnknownHostException
RequestException
java.io.IOException
java.net.UnknownHostException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |