26#ifndef NIDAS_CORE_TCPSOCKETIODEVICE_H
27#define NIDAS_CORE_TCPSOCKETIODEVICE_H
31namespace nidas {
namespace core {
90 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 a TCP socket.
Definition TCPSocketIODevice.h:36
int getReadFd() const
The file descriptor used when reading from this SocketIODevice.
Definition TCPSocketIODevice.h:61
TCPSocketIODevice()
Create a TCPSocketIODevice.
Definition TCPSocketIODevice.cc:36
int getKeepAliveIdleSecs() const
Definition TCPSocketIODevice.h:136
int getWriteFd() const
The file descriptor used when writing to this device.
Definition TCPSocketIODevice.h:70
size_t write(const void *buf, size_t len)
Write to the device.
Definition TCPSocketIODevice.h:97
bool _tcpNoDelay
Definition TCPSocketIODevice.h:151
~TCPSocketIODevice()
Definition TCPSocketIODevice.cc:42
TCPSocketIODevice & operator=(const TCPSocketIODevice &)
No assignment.
void setTcpNoDelay(bool val)
Definition TCPSocketIODevice.h:112
void close()
close the device.
Definition TCPSocketIODevice.cc:47
nidas::util::Socket * _socket
The socket.
Definition TCPSocketIODevice.h:149
void open(int flags)
Open the socket, which does a socket connect to the remote address which is parsed from the contents ...
Definition TCPSocketIODevice.cc:58
void setKeepAliveIdleSecs(int val)
Definition TCPSocketIODevice.h:128
bool getTcpNoDelay()
Definition TCPSocketIODevice.h:120
TCPSocketIODevice(const TCPSocketIODevice &)
No copy.
size_t read(void *buf, size_t len)
Read from the device.
Definition TCPSocketIODevice.h:80
int _keepAliveIdleSecs
Definition TCPSocketIODevice.h:153
A stream (TCP) socket.
Definition Socket.h:573
size_t recv(void *buf, size_t len, int flags=0)
Definition Socket.h:813
int getFd() const
Fetch the file descriptor associate with this socket.
Definition Socket.h:805
size_t send(const void *buf, size_t len, int flags=MSG_NOSIGNAL)
send data on socket, see man page for send system function.
Definition Socket.h:826
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
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
int len
Definition sing.cc:948