|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.narayana.blacktie.jatmibroker.xatmi.Session
public class Session
A session reference may either be obtained from the tpconnect
Connection
invocation for a client or retrieved from the
TPSVCINFO structure for a service (assuming the service was invoked within
the scope of a tpconnect).
It is used to send and retrieve data
Connection#tpconnect(String, Buffer, int, int)
,
TPSVCINFO.getSession()
Method Summary | |
---|---|
void |
tpdiscon()
Close the conversation with the remote service. |
Buffer |
tprecv(int flags)
Received the next response in a conversation |
int |
tpsend(Buffer toSend,
int flags)
Send a buffer to a remote server in a conversation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int tpsend(Buffer toSend, int flags) throws ConnectionException
toSend
- The outbound datalen
- The length of the dataflags
- The flags to use
ConnectionException
- If the message cannot be sent.public Buffer tprecv(int flags) throws ConnectionException
flags
- The flags to use
ConnectionException
- If the message cannot be received or the flags are incorrectpublic void tpdiscon() throws ConnectionException
ConnectionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |