This is Unofficial EPICS BASE Doxygen Site
netiiu Class Referenceabstract

#include "netiiu.h"

+ Inheritance diagram for netiiu:

Public Member Functions

virtual ~netiiu ()=0
 
virtual unsigned getHostName (epicsGuard< epicsMutex > &, char *pBuf, unsigned bufLength) const =0 throw ()
 
virtual const char * pHostName (epicsGuard< epicsMutex > &) const =0 throw ()
 
virtual bool ca_v41_ok (epicsGuard< epicsMutex > &) const =0
 
virtual bool ca_v42_ok (epicsGuard< epicsMutex > &) const =0
 
virtual unsigned requestMessageBytesPending (epicsGuard< epicsMutex > &mutualExclusionGuard)=0
 
virtual void flush (epicsGuard< epicsMutex > &mutualExclusionGuard)=0
 
virtual void writeRequest (epicsGuard< epicsMutex > &, nciu &, unsigned type, arrayElementCount nElem, const void *pValue)=0
 
virtual void writeNotifyRequest (epicsGuard< epicsMutex > &, nciu &, netWriteNotifyIO &, unsigned type, arrayElementCount nElem, const void *pValue)=0
 
virtual void readNotifyRequest (epicsGuard< epicsMutex > &, nciu &, netReadNotifyIO &, unsigned type, arrayElementCount nElem)=0
 
virtual void clearChannelRequest (epicsGuard< epicsMutex > &, ca_uint32_t sid, ca_uint32_t cid)=0
 
virtual void subscriptionRequest (epicsGuard< epicsMutex > &, nciu &, netSubscription &)=0
 
virtual void subscriptionUpdateRequest (epicsGuard< epicsMutex > &, nciu &, netSubscription &)=0
 
virtual void subscriptionCancelRequest (epicsGuard< epicsMutex > &, nciu &chan, netSubscription &subscr)=0
 
virtual void flushRequest (epicsGuard< epicsMutex > &)=0
 
virtual void requestRecvProcessPostponedFlush (epicsGuard< epicsMutex > &)=0
 
virtual osiSockAddr getNetworkAddress (epicsGuard< epicsMutex > &) const =0
 
virtual void uninstallChan (epicsGuard< epicsMutex > &, nciu &)=0
 
virtual void uninstallChanDueToSuccessfulSearchResponse (epicsGuard< epicsMutex > &, nciu &, const class epicsTime &currentTime)=0
 
virtual double receiveWatchdogDelay (epicsGuard< epicsMutex > &) const =0
 
virtual bool searchMsg (epicsGuard< epicsMutex > &, ca_uint32_t id, const char *pName, unsigned nameLength)=0
 

Detailed Description

Definition at line 37 of file netiiu.h.

Constructor & Destructor Documentation

netiiu::~netiiu ( )
pure virtual

Definition at line 33 of file netiiu.cpp.

34 {
35 }

Member Function Documentation

bool netiiu::ca_v41_ok ( epicsGuard< epicsMutex > &  ) const
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 43 of file netiiu.cpp.

45 {
46  return false;
47 }
bool netiiu::ca_v42_ok ( epicsGuard< epicsMutex > &  ) const
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 37 of file netiiu.cpp.

39 {
40  return false;
41 }
void netiiu::clearChannelRequest ( epicsGuard< epicsMutex > &  ,
ca_uint32_t  sid,
ca_uint32_t  cid 
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 71 of file netiiu.cpp.

73 {
74 }
void netiiu::flush ( epicsGuard< epicsMutex > &  mutualExclusionGuard)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 137 of file netiiu.cpp.

139 {
140 }
void netiiu::flushRequest ( epicsGuard< epicsMutex > &  )
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 126 of file netiiu.cpp.

128 {
129 }
unsigned netiiu::getHostName ( epicsGuard< epicsMutex > &  ,
char *  pBuf,
unsigned  bufLength 
) const
throw (
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 93 of file netiiu.cpp.

96 {
97  if ( bufLen ) {
98  unsigned len = strlen ( pHostNameNetIIU );
99  strncpy ( pBuf, pHostNameNetIIU, bufLen );
100  if ( len < bufLen ) {
101  return len;
102  }
103  else {
104  unsigned reducedSize = bufLen - 1u;
105  pBuf[reducedSize] = '\0';
106  return reducedSize;
107  }
108  }
109  return 0u;
110 }
osiSockAddr netiiu::getNetworkAddress ( epicsGuard< epicsMutex > &  ) const
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 118 of file netiiu.cpp.

120 {
121  osiSockAddr addr;
122  addr.sa.sa_family = AF_UNSPEC;
123  return addr;
124 }
struct sockaddr sa
Definition: osiSock.h:158
const char * netiiu::pHostName ( epicsGuard< epicsMutex > &  ) const
throw (
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 112 of file netiiu.cpp.

114 {
115  return pHostNameNetIIU;
116 }
void netiiu::readNotifyRequest ( epicsGuard< epicsMutex > &  ,
nciu ,
netReadNotifyIO ,
unsigned  type,
arrayElementCount  nElem 
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 64 of file netiiu.cpp.

67 {
69 }
double netiiu::receiveWatchdogDelay ( epicsGuard< epicsMutex > &  ) const
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 153 of file netiiu.cpp.

155 {
156  return - DBL_MAX;
157 }
unsigned netiiu::requestMessageBytesPending ( epicsGuard< epicsMutex > &  mutualExclusionGuard)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 131 of file netiiu.cpp.

133 {
134  return 0u;
135 }
void netiiu::requestRecvProcessPostponedFlush ( epicsGuard< epicsMutex > &  )
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 142 of file netiiu.cpp.

144 {
145 }
bool netiiu::searchMsg ( epicsGuard< epicsMutex > &  ,
ca_uint32_t  id,
const char *  pName,
unsigned  nameLength 
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 166 of file netiiu.cpp.

169 {
170  return false;
171 }
void netiiu::subscriptionCancelRequest ( epicsGuard< epicsMutex > &  ,
nciu chan,
netSubscription subscr 
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 81 of file netiiu.cpp.

83 {
84 }
void netiiu::subscriptionRequest ( epicsGuard< epicsMutex > &  ,
nciu ,
netSubscription  
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 76 of file netiiu.cpp.

78 {
79 }
void netiiu::subscriptionUpdateRequest ( epicsGuard< epicsMutex > &  ,
nciu ,
netSubscription  
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 86 of file netiiu.cpp.

88 {
89 }
void netiiu::uninstallChan ( epicsGuard< epicsMutex > &  ,
nciu  
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 147 of file netiiu.cpp.

149 {
150  throw cacChannel::notConnected();
151 }
void netiiu::uninstallChanDueToSuccessfulSearchResponse ( epicsGuard< epicsMutex > &  ,
nciu ,
const class epicsTime &  currentTime 
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 159 of file netiiu.cpp.

161 {
162  throw std::runtime_error (
163  "search response occured when not attached to udpiiu?" );
164 }
void netiiu::writeNotifyRequest ( epicsGuard< epicsMutex > &  ,
nciu ,
netWriteNotifyIO ,
unsigned  type,
arrayElementCount  nElem,
const void *  pValue 
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 56 of file netiiu.cpp.

60 {
62 }
void netiiu::writeRequest ( epicsGuard< epicsMutex > &  ,
nciu ,
unsigned  type,
arrayElementCount  nElem,
const void *  pValue 
)
pure virtual

Implemented in tcpiiu, and noopiiu.

Definition at line 49 of file netiiu.cpp.

52 {
54 }

The documentation for this class was generated from the following files: