ACE
6.1.8
|
Class definitions for platform specific TTY features. More...
#include <TTY_IO.h>
Classes | |
struct | Serial_Params |
Public Types | |
enum | Control_Mode { SETPARAMS, GETPARAMS } |
![]() | |
typedef ACE_DEV_Addr | PEER_ADDR |
Declare the dynamic allocation hooks. More... | |
Public Member Functions | |
int | control (Control_Mode cmd, Serial_Params *arg) const |
![]() | |
ACE_DEV_IO (void) | |
Default constructor. More... | |
ssize_t | send (const void *buf, size_t n) const |
send upto n bytes in buf. More... | |
ssize_t | recv (void *buf, size_t n) const |
Recv upto n bytes in buf. More... | |
ssize_t | send_n (const void *buf, size_t n) const |
Send n bytes, keep trying until n are sent. More... | |
ssize_t | recv_n (void *buf, size_t n, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) const |
Declare the dynamic allocation hooks. More... | |
ssize_t | send (const iovec iov[], size_t n) const |
Send iovecs via <::writev>. More... | |
ssize_t | recv (iovec iov[], size_t n) const |
Recv iovecs via <::readv>. More... | |
ssize_t | send (size_t n,...) const |
ssize_t | recv (size_t n,...) const |
ssize_t | send (const void *buf, size_t n, ACE_OVERLAPPED *overlapped) const |
Send n bytes via Win32 WriteFile using overlapped I/O. More... | |
ssize_t | recv (void *buf, size_t n, ACE_OVERLAPPED *overlapped) const |
Recv n bytes via Win32 ReadFile using overlapped I/O. More... | |
void | dump (void) const |
Dump the state of an object. More... | |
int | get_local_addr (ACE_DEV_Addr &) const |
Return the local endpoint address. More... | |
int | get_remote_addr (ACE_DEV_Addr &) const |
![]() | |
int | close (void) |
Close down the DEVICE. More... | |
void | dump (void) const |
Dump the state of an object. More... | |
int | disable (int signum) const |
![]() | |
~ACE_IO_SAP (void) | |
Default dtor. More... | |
int | control (int cmd, void *) const |
Interface for ioctl. More... | |
int | enable (int value) const |
int | disable (int value) const |
ACE_HANDLE | get_handle (void) const |
Get the underlying handle. More... | |
void | set_handle (ACE_HANDLE handle) |
Set the underlying handle. More... | |
void | dump (void) const |
Dump the state of an object. More... | |
Additional Inherited Members | |
![]() | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. More... | |
![]() | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. More... | |
![]() | |
ACE_DEV (void) | |
Ensure that this class is an abstract base class. More... | |
Class definitions for platform specific TTY features.
This class represents an example interface for a specific device (a serial line). It extends the capability of the underlying DEV_IO class by adding a control method that takes a special structure (Serial_Params) as argument to allow a comfortable user interface (away from that annoying termios structure, which is very specific to UNIX).
int ACE_TTY_IO::control | ( | Control_Mode | cmd, |
Serial_Params * | arg | ||
) | const |
Interface for reading/writing serial device parameters.