ACE  6.3.3
Classes | Public Types | Public Member Functions | List of all members
ACE_TTY_IO Class Reference

Class definitions for platform specific TTY features. More...

#include <TTY_IO.h>

Inheritance diagram for ACE_TTY_IO:
Inheritance graph
[legend]
Collaboration diagram for ACE_TTY_IO:
Collaboration graph
[legend]

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. More...
 
- Public Types inherited from ACE_IO_SAP
enum  { INVALID_HANDLE = -1 }
 

Public Member Functions

 ACE_TTY_IO (void)
 
int control (Control_Mode cmd, Serial_Params *arg) const
 
- Public Member Functions inherited from ACE_DEV_IO
 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
 
- Public Member Functions inherited from ACE_DEV
int close (void)
 Close down the DEVICE. More...
 
void dump (void) const
 Dump the state of an object. More...
 
int disable (int signum) const
 
- Public Member Functions inherited from ACE_IO_SAP
 ~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

- Public Attributes inherited from ACE_DEV_IO
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 
- Public Attributes inherited from ACE_DEV
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 
- Public Attributes inherited from ACE_IO_SAP
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 
- Protected Member Functions inherited from ACE_DEV
 ACE_DEV (void)
 Ensure that this class is an abstract base class. More...
 
- Protected Member Functions inherited from ACE_IO_SAP
 ACE_IO_SAP (void)
 Ensure that ACE_IO_SAP is an abstract base class. More...
 

Detailed Description

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).

Member Enumeration Documentation

Enumerator
SETPARAMS 

Set control parameters.

GETPARAMS 

Get control parameters.

Constructor & Destructor Documentation

ACE_TTY_IO::ACE_TTY_IO ( void  )

Member Function Documentation

int ACE_TTY_IO::control ( Control_Mode  cmd,
Serial_Params arg 
) const

Interface for reading/writing serial device parameters.


The documentation for this class was generated from the following files: