![]() |
botsense
3.2.0
RoadNarrows Client-Server Proxied Services Framework
|
BotSense bsProxy client proxied /dev/null device used for testing. More...
#include <stdio.h>
#include <stdlib.h>
#include <libgen.h>
#include <string.h>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/netmsgs.h"
#include "botsense/BotSense.h"
#include "botsense/libBotSense.h"
#include "botsense/bsNull.h"
#include "botsense/bsNullMsgs.h"
Go to the source code of this file.
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... | |
Variables | |
static BsClientAppInfo_T | bsNullAppInfo |
BotSense client application information. More... | |
BotSense bsProxy client proxied /dev/null device used for testing.
Definition in file bsNullClient.c.
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.
|
static |
BotSense client application information.
Definition at line 70 of file bsNullClient.c.