This is Unofficial EPICS BASE Doxygen Site
noopiiu.cpp
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  * L O S A L A M O S
13  * Los Alamos National Laboratory
14  * Los Alamos, New Mexico 87545
15  *
16  * Copyright, 1986, The Regents of the University of California.
17  *
18  *
19  * Author Jeffrey O. Hill
20  * johill@lanl.gov
21  * 505 665 1831
22  */
23 
24 #include "osiSock.h"
25 
26 #include "noopiiu.h"
27 
29 
31 {
32 }
33 
35  epicsGuard < epicsMutex > & cacGuard,
36  char * pBuf, unsigned bufLength ) const throw ()
37 {
38  return netiiu::getHostName ( cacGuard, pBuf, bufLength );
39 }
40 
41 const char * noopiiu::pHostName (
42  epicsGuard < epicsMutex > & cacGuard ) const throw ()
43 {
44  return netiiu::pHostName ( cacGuard );
45 }
46 
48  epicsGuard < epicsMutex > & cacGuard ) const
49 {
50  return netiiu::ca_v42_ok ( cacGuard );
51 }
52 
54  epicsGuard < epicsMutex > & cacGuard ) const
55 {
56  return netiiu::ca_v41_ok ( cacGuard );
57 }
58 
61  nciu & chan, unsigned type,
62  arrayElementCount nElem, const void * pValue )
63 {
64  netiiu::writeRequest ( guard, chan, type, nElem, pValue );
65 }
66 
68  epicsGuard < epicsMutex > & guard, nciu & chan,
69  netWriteNotifyIO & io, unsigned type,
70  arrayElementCount nElem, const void *pValue )
71 {
72  netiiu::writeNotifyRequest ( guard, chan, io, type, nElem, pValue );
73 }
74 
76  epicsGuard < epicsMutex > & guard, nciu & chan,
77  netReadNotifyIO & io, unsigned type, arrayElementCount nElem )
78 {
79  netiiu::readNotifyRequest ( guard, chan, io, type, nElem );
80 }
81 
84  ca_uint32_t sid, ca_uint32_t cid )
85 {
86  netiiu::clearChannelRequest ( guard, sid, cid );
87 }
88 
90  epicsGuard < epicsMutex > & guard, nciu & chan,
91  netSubscription & subscr )
92 {
93  netiiu::subscriptionRequest ( guard, chan, subscr );
94 }
95 
97  epicsGuard < epicsMutex > & guard, nciu & chan,
98  netSubscription & subscr )
99 {
101  guard, chan, subscr );
102 }
103 
106  nciu & chan, netSubscription & subscr )
107 {
108  netiiu::subscriptionCancelRequest ( guard, chan, subscr );
109 }
110 
112  epicsGuard < epicsMutex > & guard )
113 {
114  netiiu::flushRequest ( guard );
115 }
116 
118  epicsGuard < epicsMutex > & guard )
119 {
120  return netiiu::requestMessageBytesPending ( guard );
121 }
122 
124  epicsGuard < epicsMutex > & guard )
125 {
126  netiiu::flush ( guard );
127 }
128 
130  epicsGuard < epicsMutex > & guard )
131 {
133 }
134 
136  epicsGuard < epicsMutex > & guard ) const
137 {
138  return netiiu::getNetworkAddress ( guard );
139 }
140 
142  epicsGuard < epicsMutex > & guard ) const
143 {
144  return netiiu::receiveWatchdogDelay ( guard );
145 }
146 
149 {
150  // intentionally does not call default in netiiu
151 }
152 
154  epicsGuard < epicsMutex > & guard, nciu & chan,
155  const class epicsTime & currentTime )
156 {
158  guard, chan, currentTime );
159 }
160 
163  const char * pName, unsigned nameLength )
164 {
165  return netiiu::searchMsg (
166  guard, id, pName, nameLength );
167 }
168 
virtual bool ca_v42_ok(epicsGuard< epicsMutex > &) const =0
Definition: netiiu.cpp:37
virtual void subscriptionCancelRequest(epicsGuard< epicsMutex > &, nciu &chan, netSubscription &subscr)=0
Definition: netiiu.cpp:81
bool searchMsg(epicsGuard< epicsMutex > &, ca_uint32_t id, const char *pName, unsigned nameLength)
Definition: noopiiu.cpp:161
void subscriptionRequest(epicsGuard< epicsMutex > &, nciu &, netSubscription &)
Definition: noopiiu.cpp:89
virtual void requestRecvProcessPostponedFlush(epicsGuard< epicsMutex > &)=0
Definition: netiiu.cpp:142
void writeNotifyRequest(epicsGuard< epicsMutex > &, nciu &, netWriteNotifyIO &, unsigned type, arrayElementCount nElem, const void *pValue)
Definition: noopiiu.cpp:67
virtual void subscriptionRequest(epicsGuard< epicsMutex > &, nciu &, netSubscription &)=0
Definition: netiiu.cpp:76
void clearChannelRequest(epicsGuard< epicsMutex > &, ca_uint32_t sid, ca_uint32_t cid)
Definition: noopiiu.cpp:82
pvd::StructureConstPtr type
unsigned int ca_uint32_t
Definition: caProto.h:76
void flushRequest(epicsGuard< epicsMutex > &)
Definition: noopiiu.cpp:111
~noopiiu()
Definition: noopiiu.cpp:30
virtual osiSockAddr getNetworkAddress(epicsGuard< epicsMutex > &) const =0
Definition: netiiu.cpp:118
virtual void readNotifyRequest(epicsGuard< epicsMutex > &, nciu &, netReadNotifyIO &, unsigned type, arrayElementCount nElem)=0
Definition: netiiu.cpp:64
virtual void flush(epicsGuard< epicsMutex > &mutualExclusionGuard)=0
Definition: netiiu.cpp:137
virtual unsigned getHostName(epicsGuard< epicsMutex > &, char *pBuf, unsigned bufLength) const =0
Definition: netiiu.cpp:93
void uninstallChan(epicsGuard< epicsMutex > &mutex, nciu &)
Definition: noopiiu.cpp:147
virtual bool ca_v41_ok(epicsGuard< epicsMutex > &) const =0
Definition: netiiu.cpp:43
osiSockAddr getNetworkAddress(epicsGuard< epicsMutex > &) const
Definition: noopiiu.cpp:135
unsigned getHostName(epicsGuard< epicsMutex > &, char *pBuf, unsigned bufLength) const
Definition: noopiiu.cpp:34
double receiveWatchdogDelay(epicsGuard< epicsMutex > &) const
Definition: noopiiu.cpp:141
virtual void uninstallChanDueToSuccessfulSearchResponse(epicsGuard< epicsMutex > &, nciu &, const class epicsTime &currentTime)=0
Definition: netiiu.cpp:159
virtual void subscriptionUpdateRequest(epicsGuard< epicsMutex > &, nciu &, netSubscription &)=0
Definition: netiiu.cpp:86
const char * pHostName(epicsGuard< epicsMutex > &) const
Definition: noopiiu.cpp:41
virtual void flushRequest(epicsGuard< epicsMutex > &)=0
Definition: netiiu.cpp:126
virtual const char * pHostName(epicsGuard< epicsMutex > &) const =0
Definition: netiiu.cpp:112
unsigned requestMessageBytesPending(epicsGuard< epicsMutex > &mutualExclusionGuard)
Definition: noopiiu.cpp:117
unsigned long arrayElementCount
Definition: cacIO.h:57
void flush(epicsGuard< epicsMutex > &mutualExclusionGuard)
Definition: noopiiu.cpp:123
virtual bool searchMsg(epicsGuard< epicsMutex > &, ca_uint32_t id, const char *pName, unsigned nameLength)=0
Definition: netiiu.cpp:166
virtual void writeRequest(epicsGuard< epicsMutex > &, nciu &, unsigned type, arrayElementCount nElem, const void *pValue)=0
Definition: netiiu.cpp:49
virtual unsigned requestMessageBytesPending(epicsGuard< epicsMutex > &mutualExclusionGuard)=0
Definition: netiiu.cpp:131
void uninstallChanDueToSuccessfulSearchResponse(epicsGuard< epicsMutex > &, nciu &, const class epicsTime &currentTime)
Definition: noopiiu.cpp:153
void writeRequest(epicsGuard< epicsMutex > &, nciu &, unsigned type, arrayElementCount nElem, const void *pValue)
Definition: noopiiu.cpp:59
void subscriptionCancelRequest(epicsGuard< epicsMutex > &, nciu &chan, netSubscription &subscr)
Definition: noopiiu.cpp:104
void subscriptionUpdateRequest(epicsGuard< epicsMutex > &, nciu &, netSubscription &)
Definition: noopiiu.cpp:96
void readNotifyRequest(epicsGuard< epicsMutex > &, nciu &, netReadNotifyIO &, unsigned type, arrayElementCount nElem)
Definition: noopiiu.cpp:75
virtual void clearChannelRequest(epicsGuard< epicsMutex > &, ca_uint32_t sid, ca_uint32_t cid)=0
Definition: netiiu.cpp:71
bool ca_v41_ok(epicsGuard< epicsMutex > &) const
Definition: noopiiu.cpp:53
virtual double receiveWatchdogDelay(epicsGuard< epicsMutex > &) const =0
Definition: netiiu.cpp:153
void requestRecvProcessPostponedFlush(epicsGuard< epicsMutex > &)
Definition: noopiiu.cpp:129
noopiiu noopIIU
Definition: noopiiu.cpp:28
Definition: nciu.h:127
bool ca_v42_ok(epicsGuard< epicsMutex > &) const
Definition: noopiiu.cpp:47
virtual void writeNotifyRequest(epicsGuard< epicsMutex > &, nciu &, netWriteNotifyIO &, unsigned type, arrayElementCount nElem, const void *pValue)=0
Definition: netiiu.cpp:56