27 #ifndef NIDAS_CORE_SOCKETIODEVICE_H
28 #define NIDAS_CORE_SOCKETIODEVICE_H
35 namespace nidas {
namespace core {
68 void ioctl(
int ,
void* ,
size_t ) throw(nidas::util::IOException)
71 "ioctl",
"not supported on SocketIODevice");
88 static void parseAddress(
const std::string& name,
int& addrtype,std::string& hostname,
113 nidas::util::auto_ptr<nidas::util::SocketAddress>
_sockAddr;
void ioctl(int, void *, size_t)
Definition: SocketIODevice.h:68
void open(int flags)
Prepare to open the socket.
Definition: SocketIODevice.cc:160
A IODevice providing support for UDP and TCP sockets.
Definition: SocketIODevice.h:40
~SocketIODevice()
Definition: SocketIODevice.cc:46
static void parseAddress(const std::string &name, int &addrtype, std::string &hostname, int &port, std::string &bindaddr)
Parse the getName() string to extract a socket type, destination address and optional port number...
Definition: SocketIODevice.cc:51
virtual const std::string & getName() const
Definition: IODevice.h:57
An interface to an IO device.
Definition: IODevice.h:41
int _addrtype
The type of the destination address, AF_INET or AF_UNIX.
Definition: SocketIODevice.h:96
Definition: IOException.h:37
int _port
Port number that is parsed from sensor name.
Definition: SocketIODevice.h:108
static n_u::SerialPort port
Definition: sing.cc:68
std::string _desthost
Destination host name from sensor name.
Definition: SocketIODevice.h:101
nidas::util::auto_ptr< nidas::util::SocketAddress > _sockAddr
The destination socket address.
Definition: SocketIODevice.h:113
SocketIODevice()
Create a SocketIODevice.
Definition: SocketIODevice.cc:41
Definition: InvalidParameterException.h:35
std::string _bindAddr
The local bind socket address.
Definition: SocketIODevice.h:118
Definition: ParseException.h:36