botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
bsNull.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // Package: BotSense
4 //
5 // File: bsNull.h
6 //
7 /*! \file
8  *
9  * $LastChangedDate: 2010-08-20 11:36:38 -0600 (Fri, 20 Aug 2010) $
10  * $Rev: 568 $
11  *
12  * \brief \h_botsense bsProxy client library /dev/null interface.
13  *
14  * \author Robin Knight (robin.knight@roadnarrows.com)
15  *
16  * \copyright
17  * \h_copy 2010-2017. RoadNarrows LLC.\n
18  * http://www.roadnarrows.com\n
19  * All Rights Reserved
20  */
21 // Permission is hereby granted, without written agreement and without
22 // license or royalty fees, to use, copy, modify, and distribute this
23 // software and its documentation for any purpose, provided that
24 // (1) The above copyright notice and the following two paragraphs
25 // appear in all copies of the source code and (2) redistributions
26 // including binaries reproduces these notices in the supporting
27 // documentation. Substantial modifications to this software may be
28 // copyrighted by their authors and need not follow the licensing terms
29 // described here, provided that the new terms are clearly indicated in
30 // all files where they apply.
31 //
32 // IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES
33 // OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY
34 // PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
35 // DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
36 // EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF
37 // THE POSSIBILITY OF SUCH DAMAGE.
38 //
39 // THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES,
40 // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
41 // FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN
42 // "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO
43 // PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
44 //
45 ////////////////////////////////////////////////////////////////////////////////
46 
47 #ifndef _BSNULL_H
48 #define _BSNULL_H
49 
50 #include "rnr/rnrconfig.h"
51 
52 #include "botsense/BotSense.h"
53 #include "botsense/libBotSense.h"
54 
55 #define BS_NULL_DEV_NAME "/dev/null" ///< DevNull device
56 
57 #define BS_NULL_SERVER_MOD "libbsserver_null" ///< server plugin dll module
58 #define BS_NULL_CLIENT_LIB "libbsclient_null" ///< client app library
59 
60 
61 extern const char *bsNullGetMsgName(BsClient_P pClient,
62  BsVConnHnd_T hndVConn,
63  uint_t uMsgId);
64 
65 extern int bsNullReqOpen(BsClient_P pClient, bool_t bInitTrace);
66 
67 extern int bsNullReqClose(BsClient_P pClient, BsVConnHnd_T hndVConn);
68 
69 extern int bsNullReqWrite(BsClient_P pClient,
70  BsVConnHnd_T hndVConn,
71  byte_t wbuf[],
72  size_t uWriteLen);
73 
74 
75 #endif // _BSNULL_H
The Client Structure Type.
Definition: bsLibInternal.h:96
const char * bsNullGetMsgName(BsClient_P pClient, BsVConnHnd_T hndVConn, uint_t uMsgId)
Get the DevNull message name.
Definition: bsNullClient.c:100
int bsNullReqWrite(BsClient_P pClient, BsVConnHnd_T hndVConn, byte_t wbuf[], size_t uWriteLen)
Proxied request to write to /dev/null.
Definition: bsNullClient.c:166
int bsNullReqClose(BsClient_P pClient, BsVConnHnd_T hndVConn)
Request proxy server to close client&#39;s proxied DevNull device vitual connection.
Definition: bsNullClient.c:149
<b><i>BotSense</i></b> client library declarations.
<b><i>BotSense</i></b> package top-level, unifying header declarations.
int BsVConnHnd_T
virtual connection handle type
Definition: BotSense.h:151
int bsNullReqOpen(BsClient_P pClient, bool_t bInitTrace)
Request proxy server to establish a virtual connection to the /dev/null device.
Definition: bsNullClient.c:122