|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sri.oaa2.com.LibComTcpConnection
Provides low-level communications methods for the agentlib
| Field Summary | |
protected boolean |
connected
|
static java.lang.String |
copyright
Copyright and version information. |
protected LibComClient |
mClient
|
protected java.lang.String[] |
mCmdLine
|
protected java.lang.String |
mConnectionId
|
static java.lang.String |
rcsId
|
| Constructor Summary | |
LibComTcpConnection(LibComClient inClient,
java.lang.String inConnectionId)
|
|
LibComTcpConnection(LibComClient client,
java.lang.String connectionId,
java.lang.String[] cmdLine)
Constructor |
|
| Method Summary | |
IclTerm |
cnx_CanonicalAddress(IclTerm address)
Returns address tcp(IPAddr,Port) to connected socket. |
boolean |
cnx_Connect(IclTerm address,
IclTerm params)
Opens a Socket connection on a Host at Port |
void |
cnx_Disconnect()
Closes the Socket connection |
boolean |
cnx_IsConnected()
LibComConnection public LibComConnection(LibComClient client, String connectionId, String[] cmdLine) { mClient = client; mConnectionId = connectionId; mCmdLine = cmdLine; connected = false; }; |
boolean |
cnx_ListenAt(IclTerm address,
IclTerm params)
|
boolean |
cnx_sendMsg(IclTerm t)
|
boolean |
cnx_sendMsgFormatWriter(IclTerm t)
|
IclTerm |
getClientAddress()
|
java.lang.String[] |
getCmdLine()
|
IclTerm |
getListenAddress()
|
void |
setLibComListener(LibComListener listener)
|
void |
setLibComServerListener(LibComServerListener listener)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String copyright
public static final java.lang.String rcsId
protected boolean connected
protected LibComClient mClient
protected java.lang.String mConnectionId
protected java.lang.String[] mCmdLine
| Constructor Detail |
public LibComTcpConnection(LibComClient client,
java.lang.String connectionId,
java.lang.String[] cmdLine)
public LibComTcpConnection(LibComClient inClient,
java.lang.String inConnectionId)
| Method Detail |
public boolean cnx_IsConnected()
LibComConnection
cnx_IsConnected in interface LibComConnectionpublic java.lang.String[] getCmdLine()
getCmdLine in interface LibComConnectionpublic IclTerm cnx_CanonicalAddress(IclTerm address)
cnx_CanonicalAddress in interface LibComConnection
public boolean cnx_Connect(IclTerm address,
IclTerm params)
cnx_Connect in interface LibComConnectionpublic boolean cnx_sendMsg(IclTerm t)
cnx_sendMsg in interface LibComConnectionpublic boolean cnx_sendMsgFormatWriter(IclTerm t)
cnx_sendMsgFormatWriter in interface LibComConnectionpublic void cnx_Disconnect()
cnx_Disconnect in interface LibComConnection
public boolean cnx_ListenAt(IclTerm address,
IclTerm params)
cnx_ListenAt in interface LibComConnectionpublic IclTerm getListenAddress()
getListenAddress in interface LibComConnectionpublic IclTerm getClientAddress()
getClientAddress in interface LibComConnectionpublic void setLibComServerListener(LibComServerListener listener)
setLibComServerListener in interface LibComConnectionpublic void setLibComListener(LibComListener listener)
setLibComListener in interface LibComConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||