BotSense Swigged Null Python Interface Module.
More...
|
def | swig_import_helper () |
|
def | bsNullGetMsgName (pClient, hndVConn, uMsgId) |
|
def | bsNullReqOpen (pClient, bInitTrace) |
|
def | bsNullReqClose (pClient, hndVConn) |
|
def | bsNullReqWrite (pClient, hndVConn, wbuf, uWriteLen) |
|
def | NullGetMsgName (client, hndVConn, msgId) |
|
def | NullReqOpen (client, trace=False) |
|
def | NullReqClose (client, hndVConn) |
|
def | NullReqWrite (client, hndVConn, wbuf) |
|
|
| BS_NULL_DEV_NAME = _bsNull.BS_NULL_DEV_NAME |
|
| BS_NULL_SERVER_MOD = _bsNull.BS_NULL_SERVER_MOD |
|
| BS_NULL_CLIENT_LIB = _bsNull.BS_NULL_CLIENT_LIB |
|
| bsNullGetMsgName = _bsNull.bsNullGetMsgName |
|
| bsNullReqOpen = _bsNull.bsNullReqOpen |
|
| bsNullReqClose = _bsNull.bsNullReqClose |
|
| bsNullReqWrite = _bsNull.bsNullReqWrite |
|
BotSense Swigged Null Python Interface Module.
- Author
- Robin Knight (robin.nosp@m..kni.nosp@m.ght@r.nosp@m.oadn.nosp@m.arrow.nosp@m.s.co.nosp@m.m)
- Copyright:
- (C) 2010. RoadNarrows LLC.
(http://www.roadnarrows.com)
All Rights Reserved
def BotSense.bsNull.NullGetMsgName |
( |
|
client, |
|
|
|
hndVConn, |
|
|
|
msgId |
|
) |
| |
Get the DevNull message name.
For each (virtual connection, message id) 2-tuple, there can be a known
name string (provided the id is valid and an application provides the
information).
Parameters:
client - BotSenseTypes.BsClient instance.
hndVConn - Virtual connection handle (ignored).
msgId - DevNull message id.
Return:
Returns message name string if it can be determined.
Otherwise returns 'unknown'.
Definition at line 142 of file bsNull.py.
143 """ Get the DevNull message name. 145 For each (virtual connection, message id) 2-tuple, there can be a known 146 name string (provided the id is valid and an application provides the 150 client - BotSenseTypes.BsClient instance. 151 hndVConn - Virtual connection handle (ignored). 152 msgId - DevNull message id. 155 Returns message name string if it can be determined. 156 Otherwise returns 'unknown'. 158 bsTypes.BsClient.ChkClient(client)
159 return bsNullGetMsgName(client.pClient, hndVConn, msgId)
def NullGetMsgName(client, hndVConn, msgId)
def BotSense.bsNull.NullReqClose |
( |
|
client, |
|
|
|
hndVConn |
|
) |
| |
Proxy server request to close client's proxied /dev/null device virtual
connection.
Raises a BotSenseError exception on failure.
Parameters:
client - BotSenseTypes.BsClient instance.
hndVConn - Virtual connection handle.
Definition at line 180 of file bsNull.py.
181 """ Proxy server request to close client's proxied /dev/null device virtual 184 Raises a BotSenseError exception on failure. 187 client - BotSenseTypes.BsClient instance. 188 hndVConn - Virtual connection handle. 190 bsTypes.BsClient.ChkClient(client)
191 rc = bsNullReqClose(client.pClient, hndVConn)
192 bsError.ChkReturnIsOk(rc,
193 "Client %s: DevNull Close request failed." % (client.AttrGetName()))
def NullReqClose(client, hndVConn)
def BotSense.bsNull.NullReqOpen |
( |
|
client, |
|
|
|
trace = False |
|
) |
| |
Proxy server request to establish a virtual connection to the /dev/null
device.
Raises a BotSenseError exception on failure.
Parameters:
client - BotSenseTypes.BsClient instance.
trace - Initial message tracing enable(true)/disable(false) state.
Return
New virtual connection handle.
Definition at line 161 of file bsNull.py.
162 """ Proxy server request to establish a virtual connection to the /dev/null 165 Raises a BotSenseError exception on failure. 168 client - BotSenseTypes.BsClient instance. 169 trace - Initial message tracing enable(true)/disable(false) state. 172 New virtual connection handle. 174 bsTypes.BsClient.ChkClient(client)
175 hndVConn = bsNullReqOpen(client.pClient, trace)
176 bsError.ChkReturnIsNonNeg(hndVConn,
177 "Client %s: DevNull Open request failed." % (client.AttrGetName()))
def NullReqOpen(client, trace=False)
def BotSense.bsNull.NullReqWrite |
( |
|
client, |
|
|
|
hndVConn, |
|
|
|
wbuf |
|
) |
| |
DevNull request to write /dev/null.
Raises a BotSenseError exception on failure.
Parameters:
client - BotSenseTypes.BsClient instance.
hndVConn - Virtual connection handle.
wbuf - Write buffer.
Return:
Number of bytes written.
Definition at line 195 of file bsNull.py.
196 """ DevNull request to write /dev/null. 198 Raises a BotSenseError exception on failure. 201 client - BotSenseTypes.BsClient instance. 202 hndVConn - Virtual connection handle. 206 Number of bytes written. 208 bsTypes.BsClient.ChkClient(client)
209 wbytebuf = bsTypes.ByteBuf.Clone(wbuf)
210 wbytebuf.copyToSwigObj(len(wbytebuf))
211 n = bsNullReqWrite(client.pClient, hndVConn, wbytebuf.getSwigObj(),
213 bsError.ChkReturnIsNonNeg(n,
214 "Client %s: DevNull Write request failed." % (client.AttrGetName()))
221 def NullReqWrite(client, hndVConn, wbuf)