27#ifndef NIDAS_CORE_SOCKETIODEVICE_H
28#define NIDAS_CORE_SOCKETIODEVICE_H
35namespace nidas {
namespace core {
72 void ioctl(
int ,
void* ,
size_t )
75 "ioctl",
"not supported on SocketIODevice");
94 static void parseAddress(
const std::string& name,
int& addrtype,
95 std::string& hostname,
96 int&
port, std::string& bindaddr);
120 nidas::util::auto_ptr<nidas::util::SocketAddress>
_sockAddr;
An interface to an IO device.
Definition IODevice.h:42
virtual const std::string & getName() const
Definition IODevice.h:57
A IODevice providing support for UDP and TCP sockets.
Definition SocketIODevice.h:40
void ioctl(int, void *, size_t)
Definition SocketIODevice.h:72
int _port
Port number that is parsed from sensor name.
Definition SocketIODevice.h:115
std::string _desthost
Destination host name from sensor name.
Definition SocketIODevice.h:108
SocketIODevice()
Create a SocketIODevice.
Definition SocketIODevice.cc:41
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
~SocketIODevice()
Definition SocketIODevice.cc:46
std::string _bindAddr
The local bind socket address.
Definition SocketIODevice.h:125
void open(int flags)
Prepare to open the socket.
Definition SocketIODevice.cc:160
int _addrtype
The type of the destination address, AF_INET or AF_UNIX.
Definition SocketIODevice.h:103
nidas::util::auto_ptr< nidas::util::SocketAddress > _sockAddr
The destination socket address.
Definition SocketIODevice.h:120
Definition IOException.h:37
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
static n_u::SerialPort port
Definition sing.cc:68