ACE 8.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
ACE_TLI_Stream Class Reference

Defines the member functions for ACE_TLI_Stream abstraction. More...

#include <TLI_Stream.h>

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

Public Types

typedef ACE_INET_Addr PEER_ADDR
 

Public Member Functions

 ACE_TLI_Stream ()
 Default constructor.
 
int close ()
 Close down and release resources.
 
int active_close ()
 Send a release and then await the release from the other side.
 
int passive_close ()
 
int get_remote_addr (ACE_Addr &) const
 Return address of remotely connected peer.
 
ssize_t send (const void *buf, size_t n, int flags, const ACE_Time_Value *timeout=0) const
 Send an n byte buffer to the connected socket (uses t_snd(3)).
 
ssize_t recv (void *buf, size_t n, int *flags, const ACE_Time_Value *timeout=0) const
 Recv an n byte buffer from the connected socket (uses t_rcv(3)).
 
ssize_t send_n (const void *buf, size_t n, int flags, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) const
 Send exactly n bytes to the connected socket (uses t_snd(3)).
 
ssize_t recv_n (void *buf, size_t n, int *flags, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) const
 Recv exactly n bytes from the connected socket (uses t_rcv(3)).
 
ssize_t send (const void *buf, size_t n, const ACE_Time_Value *timeout=0) const
 Send an n byte buffer to the connected socket (uses write(2)).
 
ssize_t recv (void *buf, size_t n, const ACE_Time_Value *timeout=0) const
 Recv an n byte buffer from the connected socket (uses read(2)).
 
ssize_t send_n (const void *buf, size_t n, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) const
 Send n bytes, keep trying until n are sent (uses write(2)).
 
ssize_t recv_n (void *buf, size_t n, const ACE_Time_Value *timeout=0, size_t *bytes_transferred=0) const
 Recv n bytes, keep trying until n are received (uses read (2)).
 
void dump () const
 Dump the state of an object.
 
- Public Member Functions inherited from ACE_TLI
ACE_HANDLE open (const char device[], int oflag=O_RDWR, struct t_info *info=0)
 Initialize a TLI endpoint.
 
int close ()
 Close a TLI endpoint and release resources.
 
int set_option (int level, int option, void *optval, int optlen)
 Set underlying protocol options.
 
int get_option (int level, int option, void *optval, int &optlen)
 Get underlying protocol options.
 
int look () const
 
int rcvdis (struct t_discon *=0) const
 
int snddis (struct t_call *=0) const
 
int sndrel () const
 
int rcvrel () const
 
int get_local_addr (ACE_Addr &) const
 Return our local endpoint address.
 
void dump () const
 Dump the state of an object.
 
- Public Member Functions inherited from ACE_IPC_SAP
int control (int cmd, void *) const
 Interface for <ioctl>.
 
int enable (int value) const
 
int disable (int value) const
 
ACE_HANDLE get_handle () const
 Get the underlying handle.
 
void set_handle (ACE_HANDLE handle)
 Set the underlying handle.
 
void dump () const
 Dump the state of an object.
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 
- Public Attributes inherited from ACE_TLI
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 
- Public Attributes inherited from ACE_IPC_SAP
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 

Private Member Functions

int get_rwflag () const
 Get rwflag.
 
void set_rwflag (int value)
 Set rwflag.
 

Private Attributes

int rwflag_
 Indicates whether the tirdwr module should be pushed.
 

Friends

class ACE_TLI_Acceptor
 
class ACE_TLI_Connector
 

Additional Inherited Members

- Protected Member Functions inherited from ACE_TLI
 ACE_TLI ()
 Default constructor.
 
 ~ACE_TLI ()
 Destructor.
 
 ACE_TLI (const char device[], int oflag=O_RDWR, struct t_info *info=0)
 Initialize a TLI endpoint.
 
- Protected Member Functions inherited from ACE_IPC_SAP
 ACE_IPC_SAP ()
 Default constructor.
 
 ~ACE_IPC_SAP ()
 Protected destructor.
 

Detailed Description

Defines the member functions for ACE_TLI_Stream abstraction.

Member Typedef Documentation

◆ PEER_ADDR

Constructor & Destructor Documentation

◆ ACE_TLI_Stream()

ACE_TLI_Stream::ACE_TLI_Stream ( )

Default constructor.

Member Function Documentation

◆ active_close()

int ACE_TLI_Stream::active_close ( )

Send a release and then await the release from the other side.

◆ close()

int ACE_TLI_Stream::close ( )

Close down and release resources.

◆ dump()

void ACE_TLI_Stream::dump ( ) const

Dump the state of an object.

◆ get_remote_addr()

int ACE_TLI_Stream::get_remote_addr ( ACE_Addr & sa) const

Return address of remotely connected peer.

◆ get_rwflag()

int ACE_TLI_Stream::get_rwflag ( ) const
inlineprivate

Get rwflag.

◆ passive_close()

int ACE_TLI_Stream::passive_close ( )

Acknowledge the release from the other side and then send the release to the other side.

◆ recv() [1/2]

ssize_t ACE_TLI_Stream::recv ( void * buf,
size_t n,
const ACE_Time_Value * timeout = 0 ) const

Recv an n byte buffer from the connected socket (uses read(2)).

◆ recv() [2/2]

ssize_t ACE_TLI_Stream::recv ( void * buf,
size_t n,
int * flags,
const ACE_Time_Value * timeout = 0 ) const

Recv an n byte buffer from the connected socket (uses t_rcv(3)).

◆ recv_n() [1/2]

ssize_t ACE_TLI_Stream::recv_n ( void * buf,
size_t n,
const ACE_Time_Value * timeout = 0,
size_t * bytes_transferred = 0 ) const

Recv n bytes, keep trying until n are received (uses read (2)).

◆ recv_n() [2/2]

ssize_t ACE_TLI_Stream::recv_n ( void * buf,
size_t n,
int * flags,
const ACE_Time_Value * timeout = 0,
size_t * bytes_transferred = 0 ) const

Recv exactly n bytes from the connected socket (uses t_rcv(3)).

◆ send() [1/2]

ssize_t ACE_TLI_Stream::send ( const void * buf,
size_t n,
const ACE_Time_Value * timeout = 0 ) const

Send an n byte buffer to the connected socket (uses write(2)).

◆ send() [2/2]

ssize_t ACE_TLI_Stream::send ( const void * buf,
size_t n,
int flags,
const ACE_Time_Value * timeout = 0 ) const

Send an n byte buffer to the connected socket (uses t_snd(3)).

◆ send_n() [1/2]

ssize_t ACE_TLI_Stream::send_n ( const void * buf,
size_t n,
const ACE_Time_Value * timeout = 0,
size_t * bytes_transferred = 0 ) const

Send n bytes, keep trying until n are sent (uses write(2)).

◆ send_n() [2/2]

ssize_t ACE_TLI_Stream::send_n ( const void * buf,
size_t n,
int flags,
const ACE_Time_Value * timeout = 0,
size_t * bytes_transferred = 0 ) const

Send exactly n bytes to the connected socket (uses t_snd(3)).

◆ set_rwflag()

void ACE_TLI_Stream::set_rwflag ( int value)
inlineprivate

Set rwflag.

Friends And Related Symbol Documentation

◆ ACE_TLI_Acceptor

◆ ACE_TLI_Connector

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_TLI_Stream::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ rwflag_

int ACE_TLI_Stream::rwflag_
private

Indicates whether the tirdwr module should be pushed.


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