26 #ifndef NIDAS_CORE_UDPSOCKETIODEVICE_H
27 #define NIDAS_CORE_UDPSOCKETIODEVICE_H
34 namespace nidas {
namespace core {
87 size_t read(
void *buf,
size_t len,
int msecTimeout)
101 void close() throw(nidas::util::IOException);
121 UDPSocketIODevice& operator=(const UDPSocketIODevice&);
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 recv(void *buf, size_t len, int flags=0)
Definition: Socket.h:1063
void send(const DatagramPacketBase &packet, int flags=0)
Definition: Socket.h:1058
UDPSocketIODevice()
Create a UDPSocketIODevice.
Definition: UDPSocketIODevice.cc:36
int getFd() const
Definition: Socket.h:1031
A IODevice providing support for UDP and TCP sockets.
Definition: SocketIODevice.h:40
int getReadFd() const
The file descriptor used when reading from this SocketIODevice.
Definition: UDPSocketIODevice.h:62
size_t write(const void *buf, size_t len)
Write to the device.
Definition: UDPSocketIODevice.h:93
void close()
close the device.
Definition: UDPSocketIODevice.cc:46
int getWriteFd() const
The file descriptor used when writing to this device.
Definition: UDPSocketIODevice.h:71
Implementation of an IOChannel, over a DatagramSocket.
Definition: DatagramSocket.h:44
int len
Definition: sing.cc:934
Definition: IOException.h:37
~UDPSocketIODevice()
Definition: UDPSocketIODevice.cc:41
nidas::util::DatagramSocket * _socket
The datagramsocket.
Definition: UDPSocketIODevice.h:111
size_t read(void *buf, size_t len)
Read from the device.
Definition: UDPSocketIODevice.h:79
An IODevice consisting of an UDP socket.
Definition: UDPSocketIODevice.h:39
Definition: InvalidParameterException.h:35