27 #ifndef NIDAS_CORE_UNIXIOCHANNEL_H
28 #define NIDAS_CORE_UNIXIOCHANNEL_H
38 namespace nidas {
namespace core {
71 rqstr->connected(
this);
121 ssize_t res = ::writev(
_fd,iov,iovcnt);
127 void close() throw (nidas::util::IOException)
143 throw(nidas::util::InvalidParameterException)
146 "UnixIOChannel::fromDOMElement not supported");
IOChannel * connect()
Pretty simple, we're connected already.
Definition: UnixIOChannel.h:77
void setName(const std::string &val)
Definition: UnixIOChannel.h:140
std::string _name
Definition: UnixIOChannel.h:159
UnixIOChannel(const std::string &name, int fd)
Constructor.
Definition: UnixIOChannel.h:50
const std::string & getName() const
Definition: UnixIOChannel.h:138
void requestConnection(IOChannelRequester *rqstr)
RequestConnection just returns connected immediately.
Definition: UnixIOChannel.h:68
~UnixIOChannel()
Destructor.
Definition: UnixIOChannel.h:58
size_t write(const struct iovec *iov, int iovcnt)
Do the actual hardware write.
Definition: UnixIOChannel.h:119
A channel for Input or Output of data.
Definition: IOChannel.h:64
Simple implementation of an IOChannel, over an opened file descriptor.
Definition: UnixIOChannel.h:43
int getFd() const
Definition: UnixIOChannel.h:133
int len
Definition: sing.cc:934
size_t read(void *buf, size_t len)
Do the actual hardware read.
Definition: UnixIOChannel.h:97
int fd
Definition: twod.c:56
Definition: IOException.h:37
UnixIOChannel * clone() const
Clone invokes default copy constructor.
Definition: UnixIOChannel.h:63
virtual bool isNewInput() const
Some IOChannels, namely FileSet, which opens successive files, need to indicate when a read is from t...
Definition: UnixIOChannel.h:92
size_t write(const void *buf, size_t len)
Do the actual hardware write.
Definition: UnixIOChannel.h:108
void setNonBlocking(bool val)
Set the state of O_NONBLOCK with fcntl system call.
Definition: UnixIOChannel.cc:31
void close()
Definition: UnixIOChannel.h:127
bool isNonBlocking() const
Do fcntl to determine value of O_NONBLOCK flag.
Definition: UnixIOChannel.cc:48
int _fd
Definition: UnixIOChannel.h:161
Interface for an object that requests connections to Inputs or Outputs.
Definition: IOChannel.h:54
void fromDOMElement(const xercesc::DOMElement *)
Initialize myself from a xercesc::DOMElement.
Definition: UnixIOChannel.h:142
bool _newInput
Definition: UnixIOChannel.h:163
Definition: InvalidParameterException.h:35
UnixIOChannel(const UnixIOChannel &x)
Constructor.
Definition: UnixIOChannel.h:154