This is Unofficial EPICS BASE Doxygen Site
repeaterClient.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
10 /*
11  *
12  *
13  * L O S A L A M O S
14  * Los Alamos National Laboratory
15  * Los Alamos, New Mexico 87545
16  *
17  * Copyright, 1986, The Regents of the University of California.
18  *
19  *
20  * Author Jeffrey O. Hill
21  * johill@lanl.gov
22  * 505 665 1831
23  */
24 
25 #ifndef INC_repeaterClient_H
26 #define INC_repeaterClient_H
27 
28 #include "tsDLList.h"
29 #include "tsFreeList.h"
30 #include "compilerDependencies.h"
31 
32 #include "libCaAPI.h"
33 
34 union osiSockAddr;
35 
36 /*
37  * one socket per client so we will get the ECONNREFUSED
38  * error code (and then delete the client)
39  */
40 class repeaterClient : public tsDLNode < repeaterClient > {
41 public:
42  repeaterClient ( const osiSockAddr & from );
43  ~repeaterClient ();
44  bool connect ();
45  bool sendConfirm ();
46  bool sendMessage ( const void *pBuf, unsigned bufSize );
47  bool verify ();
48  bool identicalAddress ( const osiSockAddr &from );
49  bool identicalPort ( const osiSockAddr &from );
50  void * operator new ( size_t size,
52  epicsPlacementDeleteOperator (( void *,
54 private:
55  osiSockAddr from;
56  SOCKET sock;
57  unsigned short port () const;
58  void operator delete ( void * );
59 };
60 
61 #endif // ifndef INC_repeaterClient_H
epicsPlacementDeleteOperator((void *, tsFreeList< repeaterClient, 0x20 > &)) private SOCKE sock)
unsigned short port() const
Definition: repeater.cpp:254
int SOCKET
Definition: osdSock.h:31
repeaterClient(const osiSockAddr &from)
Definition: repeater.cpp:127
bool connect()
Definition: repeater.cpp:136
bool sendConfirm()
Definition: repeater.cpp:162
bool identicalPort(const osiSockAddr &from)
Definition: repeater.cpp:271
Compiler specific declarations.
bool sendMessage(const void *pBuf, unsigned bufSize)
Definition: repeater.cpp:188
bool identicalAddress(const osiSockAddr &from)
Definition: repeater.cpp:259