![]() |
botsense
3.2.0
RoadNarrows Client-Server Proxied Services Framework
|
BotSense client - server connection and request functions. More...
Go to the source code of this file.
Functions | |
def | BotSense.BotSenseServer.ServerConnect (client, serverHostName='localhost', serverPort=bsCore.BSPROXY_LISTEN_PORT_DFT) |
Connect to the bsProxy server. More... | |
def | BotSense.BotSenseServer.ServerDisconnect (client) |
Disconnect from the bsProxy server. More... | |
def | BotSense.BotSenseServer.ServerReqGetVersion (client) |
Proxy server request to get the bsProxy server's version string. More... | |
def | BotSense.BotSenseServer.ServerReqLoopback (client, loopbackMsg) |
Proxy server request to loopback the given message. More... | |
def | BotSense.BotSenseServer.ServerReqSetLogging (client, level) |
Proxy server request to set the server's diagnostics logging level. More... | |
def | BotSense.BotSenseServer.ServerReqMsgTrace (client, hndVConn, trace) |
Proxy server request to enable/disable message tracing on a virtual connection. More... | |
def | BotSense.BotSenseServer.ServerReqOpenDev (client, devName, modName, argbuf, appInfo, trace=False) |
Proxy server request to establish a virtual connection to the device end point. More... | |
def | BotSense.BotSenseServer.ServerReqCloseDev (client, hndVConn) |
Proxy server request to close a client's virtual connection. More... | |
def | BotSense.BotSenseServer.ServerReqGetVConnList (client) |
Proxy server request to retrieve the server's list of virtual connection handles for this client. More... | |
def | BotSense.BotSenseServer.ServerReqGetVConnInfo (client, hndVConn) |
Proxy server request to retrieve the servers's information for a given virtual connection. More... | |
BotSense client - server connection and request functions.
—
Definition in file BotSenseServer.py.
def BotSense.BotSenseServer.ServerConnect | ( | client, | |
serverHostName = 'localhost' , |
|||
serverPort = bsCore.BSPROXY_LISTEN_PORT_DFT |
|||
) |
Connect to the bsProxy server.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
serverHostName | Server's hostname in either a network or a dotted IP address. |
serverPort | Server's listen port number. |
Definition at line 71 of file BotSenseServer.py.
def BotSense.BotSenseServer.ServerDisconnect | ( | client | ) |
Disconnect from the bsProxy server.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
Definition at line 84 of file BotSenseServer.py.
def BotSense.BotSenseServer.ServerReqCloseDev | ( | client, | |
hndVConn | |||
) |
Proxy server request to close a client's virtual connection.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
hndVConn | Virtual connection handle to close. |
Definition at line 196 of file BotSenseServer.py.
def BotSense.BotSenseServer.ServerReqGetVConnInfo | ( | client, | |
hndVConn | |||
) |
Proxy server request to retrieve the servers's information for a given virtual connection.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
hndVConn | Virtual connection handle. |
Definition at line 232 of file BotSenseServer.py.
def BotSense.BotSenseServer.ServerReqGetVConnList | ( | client | ) |
Proxy server request to retrieve the server's list of virtual connection handles for this client.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
Definition at line 211 of file BotSenseServer.py.
def BotSense.BotSenseServer.ServerReqGetVersion | ( | client | ) |
Proxy server request to get the bsProxy server's version string.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
Definition at line 98 of file BotSenseServer.py.
def BotSense.BotSenseServer.ServerReqLoopback | ( | client, | |
loopbackMsg | |||
) |
Proxy server request to loopback the given message.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
loopbackMsg | Message string to loopback. |
Definition at line 114 of file BotSenseServer.py.
def BotSense.BotSenseServer.ServerReqMsgTrace | ( | client, | |
hndVConn, | |||
trace | |||
) |
Proxy server request to enable/disable message tracing on a virtual connection.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
hndVConn | Virtual connection handle. |
trace | Enable(true) or disable(false) message tracing. |
Definition at line 144 of file BotSenseServer.py.
def BotSense.BotSenseServer.ServerReqOpenDev | ( | client, | |
devName, | |||
modName, | |||
argbuf, | |||
appInfo, | |||
trace = False |
|||
) |
Proxy server request to establish a virtual connection to the device end point.
The device is open if not already opened by another virtual connection. Otherwise it is attached to this vconn.
The interface module is dynamically loaded into the server and provides the set of services for the client application communicating with the device.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
devName | Device path name string. |
modName | Interface module path name string. |
argbuf | Packed buffer of module-specific open parameters. |
appInfo | Application-specific information and callbacks (optional). Set to None if no info. Set any member to None to ignore that value. |
trace | Initial message tracing enable(true)/disable(false) state. |
Definition at line 177 of file BotSenseServer.py.
def BotSense.BotSenseServer.ServerReqSetLogging | ( | client, | |
level | |||
) |
Proxy server request to set the server's diagnostics logging level.
Raises a BotSenseError exception on failure.
client | BotSenseTypes.BsClient instance. |
level | Log level. |
Definition at line 129 of file BotSenseServer.py.