#include <FdIOClient.h>
Inheritance diagram for oasys::FdIOClient:
Definition at line 51 of file FdIOClient.h.
Public Member Functions | ||||
FdIOClient (int fd, Notifier *intr=0) | ||||
| ||||
virtual int | read (char *bp, size_t len) | |||
Virtual from IOClient. | ||||
virtual int | readv (const struct iovec *iov, int iovcnt) | |||
Virtual from IOClient. | ||||
virtual int | write (const char *bp, size_t len) | |||
Virtual from IOClient. | ||||
virtual int | writev (const struct iovec *iov, int iovcnt) | |||
Virtual from IOClient. | ||||
virtual int | readall (char *bp, size_t len) | |||
Virtual from IOClient. | ||||
virtual int | writeall (const char *bp, size_t len) | |||
Virtual from IOClient. | ||||
virtual int | readvall (const struct iovec *iov, int iovcnt) | |||
Virtual from IOClient. | ||||
virtual int | writevall (const struct iovec *iov, int iovcnt) | |||
Virtual from IOClient. | ||||
virtual int | timeout_read (char *bp, size_t len, int timeout_ms) | |||
Virtual from IOClient. | ||||
virtual int | timeout_readv (const struct iovec *iov, int iovcnt, int timeout_ms) | |||
Virtual from IOClient. | ||||
virtual int | timeout_readall (char *bp, size_t len, int timeout_ms) | |||
Virtual from IOClient. | ||||
virtual int | timeout_readvall (const struct iovec *iov, int iovcnt, int timeout_ms) | |||
Virtual from IOClient. | ||||
virtual int | timeout_write (const char *bp, size_t len, int timeout_ms) | |||
Virtual from IOClient. | ||||
virtual int | timeout_writev (const struct iovec *iov, int iovcnt, int timeout_ms) | |||
Virtual from IOClient. | ||||
virtual int | timeout_writeall (const char *bp, size_t len, int timeout_ms) | |||
Virtual from IOClient. | ||||
virtual int | timeout_writevall (const struct iovec *iov, int iovcnt, int timeout_ms) | |||
Virtual from IOClient. | ||||
virtual int | get_nonblocking (bool *nonblockingp) | |||
Virtual from IOClient. | ||||
virtual int | set_nonblocking (bool nonblocking) | |||
Virtual from IOClient. | ||||
Protected Attributes | ||||
int | fd_ |
oasys::FdIOClient::FdIOClient | ( | int | fd, | |
Notifier * | intr = 0 | |||
) |
fd | File descriptor to interact with |
intr | Optional notifier to use to interrupt blocked I/O |
Definition at line 45 of file FdIOClient.cc.
int oasys::FdIOClient::read | ( | char * | bp, | |
size_t | len | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 52 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::read().
int oasys::FdIOClient::readv | ( | const struct iovec * | iov, | |
int | iovcnt | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 58 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::readv().
int oasys::FdIOClient::write | ( | const char * | bp, | |
size_t | len | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 76 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::write().
int oasys::FdIOClient::writev | ( | const struct iovec * | iov, | |
int | iovcnt | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 82 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::writev().
int oasys::FdIOClient::readall | ( | char * | bp, | |
size_t | len | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 64 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::readall().
Referenced by oasys::FileIOClient::copy_contents(), and dtn::BundlePayload::read_data().
int oasys::FdIOClient::writeall | ( | const char * | bp, | |
size_t | len | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 88 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::writeall().
Referenced by oasys::FileIOClient::copy_contents(), dtn::APIClient::handle_recv(), and dtn::BundlePayload::internal_write().
int oasys::FdIOClient::readvall | ( | const struct iovec * | iov, | |
int | iovcnt | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 70 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::readvall().
int oasys::FdIOClient::writevall | ( | const struct iovec * | iov, | |
int | iovcnt | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 94 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::writevall().
int oasys::FdIOClient::timeout_read | ( | char * | bp, | |
size_t | len, | |||
int | timeout_ms | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 100 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_read().
int oasys::FdIOClient::timeout_readv | ( | const struct iovec * | iov, | |
int | iovcnt, | |||
int | timeout_ms | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 107 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_readv().
int oasys::FdIOClient::timeout_readall | ( | char * | bp, | |
size_t | len, | |||
int | timeout_ms | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 115 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_readall().
int oasys::FdIOClient::timeout_readvall | ( | const struct iovec * | iov, | |
int | iovcnt, | |||
int | timeout_ms | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 122 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_readvall().
int oasys::FdIOClient::timeout_write | ( | const char * | bp, | |
size_t | len, | |||
int | timeout_ms | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 130 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_write().
int oasys::FdIOClient::timeout_writev | ( | const struct iovec * | iov, | |
int | iovcnt, | |||
int | timeout_ms | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 137 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_writev().
int oasys::FdIOClient::timeout_writeall | ( | const char * | bp, | |
size_t | len, | |||
int | timeout_ms | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 145 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_writeall().
int oasys::FdIOClient::timeout_writevall | ( | const struct iovec * | iov, | |
int | iovcnt, | |||
int | timeout_ms | |||
) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 152 of file FdIOClient.cc.
References fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_writevall().
int oasys::FdIOClient::get_nonblocking | ( | bool * | nonblockingp | ) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 160 of file FdIOClient.cc.
References fd_, oasys::IO::get_nonblocking(), and oasys::Logger::logpath_.
int oasys::FdIOClient::set_nonblocking | ( | bool | nonblocking | ) | [virtual] |
Virtual from IOClient.
Implements oasys::IOClient.
Definition at line 166 of file FdIOClient.cc.
References fd_, oasys::Logger::logpath_, and oasys::IO::set_nonblocking().
int oasys::FdIOClient::fd_ [protected] |
Definition at line 87 of file FdIOClient.h.
Referenced by oasys::FileIOClient::close(), get_nonblocking(), oasys::FileIOClient::is_open(), oasys::FileIOClient::lseek(), oasys::FileIOClient::mkstemp(), oasys::FileIOClient::open(), read(), readall(), readv(), readvall(), oasys::FileIOClient::reopen(), set_nonblocking(), timeout_read(), timeout_readall(), timeout_readv(), timeout_readvall(), timeout_write(), timeout_writeall(), timeout_writev(), timeout_writevall(), oasys::FileIOClient::truncate(), write(), writeall(), writev(), writevall(), and oasys::FileIOClient::~FileIOClient().