27#ifndef NIDAS_CORE_MCSOCKETUDP_H
28#define NIDAS_CORE_MCSOCKETUDP_H
37namespace nidas {
namespace core {
153 size_t write(
const struct iovec*,
int)
Interface for an object that requests connections to Inputs or Outputs.
Definition IOChannel.h:56
A channel for Input or Output of data.
Definition IOChannel.h:65
Definition McSocketUDP.h:172
void connected(nidas::util::DatagramSocket *sock, const nidas::util::Inet4PacketInfoX &pktinfo)
Virtual method that is called when a socket connection is established.
Definition McSocketUDP.h:175
MyMcSocket(nidas::core::McSocketUDP *s)
Definition McSocketUDP.h:174
MyMcSocket(const MyMcSocket &)
No copy, assignment.
MyMcSocket operator=(const MyMcSocket &)
nidas::core::McSocketUDP * _outer
Definition McSocketUDP.h:181
Implementation of an IOChannel, using nidas::util::McSocket<nidas::util::DatagramSocket> to establish...
Definition McSocketUDP.h:46
const std::string & getName() const
Definition McSocketUDP.h:83
McSocketUDP * clone() const
Derived classes must provide clone.
Definition McSocketUDP.cc:55
const nidas::util::Inet4SocketAddress & getInet4McastSocketAddress() const
Definition McSocketUDP.h:193
void fromDOMElement(const xercesc::DOMElement *)
Definition McSocketUDP.cc:109
bool _firstRead
Definition McSocketUDP.h:210
void setRequestType(enum McSocketRequest val)
Definition McSocketUDP.h:65
virtual void connected(nidas::util::DatagramSocket *sock, const nidas::util::Inet4PacketInfoX &pktinfo)
Definition McSocketUDP.cc:84
bool isNonBlocking() const
Return isNonBlocking() of underlying socket.
Definition McSocketUDP.h:115
void close()
Definition McSocketUDP.cc:98
int getFd() const
Definition McSocketUDP.cc:104
size_t write(const struct iovec *, int)
A McSocketUDP shouldn't be used to do any actual reads or writes, it just sets up the connection.
Definition McSocketUDP.h:153
bool _newInput
Definition McSocketUDP.h:212
virtual bool isNewInput() const
Some IOChannels, namely FileSet, which opens successive files, need to indicate when a read is from t...
Definition McSocketUDP.h:95
void requestConnection(IOChannelRequester *service)
Definition McSocketUDP.cc:77
void setRequester(bool val)
Definition McSocketUDP.h:79
std::string _name
Definition McSocketUDP.h:206
void setInet4McastSocketAddress(const nidas::util::Inet4SocketAddress &val)
Definition McSocketUDP.h:188
bool _nonBlocking
Definition McSocketUDP.h:214
enum McSocketRequest getRequestType() const
Definition McSocketUDP.h:69
IOChannel * connect()
Definition McSocketUDP.cc:60
size_t read(void *, size_t)
A McSocketUDP shouldn't be used to do any actual reads or writes, it just sets up the connection.
Definition McSocketUDP.h:127
void setNonBlocking(bool val)
Do setNonBlocking(val) on underlying socket.
Definition McSocketUDP.h:105
IOChannelRequester * _iochanRequester
Definition McSocketUDP.h:200
bool isRequester() const
Does this McSocket request connections, or does it listen for incoming connections.
Definition McSocketUDP.h:77
McSocketUDP()
Constructor.
Definition McSocketUDP.cc:37
size_t write(const void *, size_t)
A McSocketUDP shouldn't be used to do any actual reads or writes, it just sets up the connection.
Definition McSocketUDP.h:140
~McSocketUDP()
Definition McSocketUDP.h:61
bool _amRequester
Definition McSocketUDP.h:208
MyMcSocket _mcsocket
Definition McSocketUDP.h:202
McSocketUDP & operator=(const McSocketUDP &)
No assignment.
void setName(const std::string &val)
Definition McSocketUDP.h:81
A socket for sending or receiving datagrams, either unicast, broadcast or multicast.
Definition Socket.h:1178
Definition Inet4PacketInfo.h:93
A IP version 4 socket address, containing a host address, and a port number.
Definition Inet4SocketAddress.h:41
A McSocket provides a way to establish a TCP stream socket connection, or a pair of UDP datagram sock...
Definition McSocket.h:192
int getRequestType() const
Get the request type number.
Definition McSocket.h:333
const Inet4SocketAddress & getInet4McastSocketAddress() const
Get the multicast address for listening to requests.
Definition McSocket.h:311
void setInet4McastSocketAddress(const Inet4SocketAddress &val)
Set the multicast address for listening to requests.
Definition McSocket.h:320
void setRequestType(int val)
Set the request type value.
Definition McSocket.h:328
Sample * getSample(sampleType type, unsigned int len)
A convienence method for getting a sample of an enumerated type from a pool.
Definition Sample.cc:70
McSocketRequest
Definition Datagrams.h:34
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31