|
ACE
6.1.7
|
Class definitions for platform specific TTY features. More...
#include <TTY_IO.h>


Classes | |
| struct | Serial_Params |
Public Types | |
| enum | Control_Mode { SETPARAMS, GETPARAMS } |
Public Types inherited from ACE_DEV_IO | |
| typedef ACE_DEV_Addr | PEER_ADDR |
| Declare the dynamic allocation hooks. | |
Public Member Functions | |
| int | control (Control_Mode cmd, Serial_Params *arg) const |
Public Member Functions inherited from ACE_DEV_IO | |
| ACE_DEV_IO (void) | |
| Default constructor. | |
| ssize_t | send (const void *buf, size_t n) const |
| send upto n bytes in buf. | |
| ssize_t | recv (void *buf, size_t n) const |
| Recv upto n bytes in buf. | |
| ssize_t | send_n (const void *buf, size_t n) const |
| Send n bytes, keep trying until n are sent. | |
| 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. | |
| ssize_t | send (const iovec iov[], size_t n) const |
| Send iovecs via <::writev>. | |
| ssize_t | recv (iovec iov[], size_t n) const |
| Recv iovecs via <::readv>. | |
| 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. | |
| ssize_t | recv (void *buf, size_t n, ACE_OVERLAPPED *overlapped) const |
| Recv n bytes via Win32 ReadFile using overlapped I/O. | |
| void | dump (void) const |
| Dump the state of an object. | |
| int | get_local_addr (ACE_DEV_Addr &) const |
| Return the local endpoint address. | |
| int | get_remote_addr (ACE_DEV_Addr &) const |
Public Member Functions inherited from ACE_DEV | |
| int | close (void) |
| Close down the DEVICE. | |
| int | disable (int signum) const |
Public Member Functions inherited from ACE_IO_SAP | |
| ~ACE_IO_SAP (void) | |
| Default dtor. | |
| int | control (int cmd, void *) const |
| Interface for ioctl. | |
| int | enable (int value) const |
| ACE_HANDLE | get_handle (void) const |
| Get the underlying handle. | |
| void | set_handle (ACE_HANDLE handle) |
| Set the underlying handle. | |
Additional Inherited Members | |
Public Attributes inherited from ACE_DEV_IO | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
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.
1.8.1.1