26#ifndef NIDAS_CORE_UDPSOCKETIODEVICE_H
27#define NIDAS_CORE_UDPSOCKETIODEVICE_H
34namespace nidas {
namespace core {
93 size_t read(
void *buf,
size_t len,
int msecTimeout);
A IODevice providing support for UDP and TCP sockets.
Definition SocketIODevice.h:40
An IODevice consisting of an UDP socket.
Definition UDPSocketIODevice.h:39
UDPSocketIODevice & operator=(const UDPSocketIODevice &)
No assignment.
nidas::util::DatagramSocket * _socket
The datagramsocket.
Definition UDPSocketIODevice.h:120
size_t read(void *buf, size_t len)
Read from the device.
Definition UDPSocketIODevice.h:83
UDPSocketIODevice()
Create a UDPSocketIODevice.
Definition UDPSocketIODevice.cc:36
~UDPSocketIODevice()
Definition UDPSocketIODevice.cc:41
void close()
close the device.
Definition UDPSocketIODevice.cc:46
int getReadFd() const
The file descriptor used when reading from this SocketIODevice.
Definition UDPSocketIODevice.h:64
int getWriteFd() const
The file descriptor used when writing to this device.
Definition UDPSocketIODevice.h:73
void open(int flags)
Open the socket, which does a socket bind to the remote address which is parsed from the contents of ...
Definition UDPSocketIODevice.cc:57
size_t write(const void *buf, size_t len)
Write to the device.
Definition UDPSocketIODevice.h:100
UDPSocketIODevice(const UDPSocketIODevice &)
No copy.
A socket for sending or receiving datagrams, either unicast, broadcast or multicast.
Definition Socket.h:1178
size_t recv(void *buf, size_t len, int flags=0)
Definition Socket.h:1356
int getFd() const
Definition Socket.h:1312
void send(const DatagramPacketBase &packet, int flags=0)
Definition Socket.h:1348
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
int len
Definition sing.cc:948