![]() |
botsense
3.2.0
RoadNarrows Client-Server Proxied Services Framework
|
BotSense bsProxy client library /dev/null interface. More...
Go to the source code of this file.
Macros | |
| #define | BS_NULL_DEV_NAME "/dev/null" |
| DevNull device. | |
| #define | BS_NULL_SERVER_MOD "libbsserver_null" |
| server plugin dll module | |
| #define | BS_NULL_CLIENT_LIB "libbsclient_null" |
| client app library | |
Functions | |
| const char * | bsNullGetMsgName (BsClient_P pClient, BsVConnHnd_T hndVConn, uint_t uMsgId) |
| Get the DevNull message name. More... | |
| int | bsNullReqOpen (BsClient_P pClient, bool_t bInitTrace) |
| Request proxy server to establish a virtual connection to the /dev/null device. More... | |
| int | bsNullReqClose (BsClient_P pClient, BsVConnHnd_T hndVConn) |
| Request proxy server to close client's proxied DevNull device vitual connection. More... | |
| int | bsNullReqWrite (BsClient_P pClient, BsVConnHnd_T hndVConn, byte_t wbuf[], size_t uWriteLen) |
| Proxied request to write to /dev/null. More... | |
BotSense bsProxy client library /dev/null interface.
Definition in file bsNull.h.
| const char* bsNullGetMsgName | ( | BsClient_P | pClient, |
| BsVConnHnd_T | hndVConn, | ||
| uint_t | uMsgId | ||
| ) |
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).
| pClient |
Definition at line 100 of file bsNullClient.c.
References BsNullLookupMsgDef().
| int bsNullReqClose | ( | BsClient_P | pClient, |
| BsVConnHnd_T | hndVConn | ||
| ) |
Request proxy server to close client's proxied DevNull device vitual connection.
| pClient |
Definition at line 149 of file bsNullClient.c.
| int bsNullReqOpen | ( | BsClient_P | pClient, |
| bool_t | bInitTrace | ||
| ) |
Request proxy server to establish a virtual connection to the /dev/null device.
| pClient |
Definition at line 122 of file bsNullClient.c.
References BS_NULL_DEV_NAME, BS_NULL_SERVER_MOD, and BSCLIENT_TRY_ECODE.
| int bsNullReqWrite | ( | BsClient_P | pClient, |
| BsVConnHnd_T | hndVConn, | ||
| byte_t | wbuf[], | ||
| size_t | uWriteLen | ||
| ) |
Proxied request to write to /dev/null.
| pClient |
Definition at line 166 of file bsNullClient.c.
References BS_ECODE_BAD_VAL, BSCLIENT_HAS_VCONN, BSCLIENT_TRY_ECODE, BSCLIENT_TRY_EXPR, BSCLIENT_TRY_NM_ECODE, BSNULL_REQWRITE_WRITEBUF_LEN, BsNullMsgIdReqWrite, BsNullMsgIdRspWrite, BsNullPackReqWrite(), BsNullUnpackRspWrite(), BSPROXY_BUF_BODY, BSPROXY_MSG_MAX_LEN, BsNullRspWrite_T::m_byteswritten, BsNullReqWrite_T::m_count, BsNullReqWrite_T::m_writebuf, and BsNullReqWrite_T::u.