Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_LSOCK_Stream Class Reference

Create a Local ACE_SOCK stream. More...

#include <LSOCK_Stream.h>

Inheritance diagram for ACE_LSOCK_Stream:

Inheritance graph
[legend]
Collaboration diagram for ACE_LSOCK_Stream:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_UNIX_Addr PEER_ADDR

Public Methods

ssize_t send_msg (const iovec iov[], size_t n, ACE_HANDLE handle)
 Send iovecs via <writev>. More...

ssize_t recv_msg (iovec iov[], size_t n, ACE_HANDLE &handle)
 Send iovecs via <writev>. More...

ACE_HANDLE get_handle (void) const
 Get handle. More...

void set_handle (ACE_HANDLE fd)
 Overrides set_handle from the base classes. More...

void dump (void) const
 Dump the state of an object. More...

int get_local_addr (ACE_Addr &) const
 This method simply returns the "local" addr. More...

int get_remote_addr (ACE_Addr &) const
 This method returns the "local" addr since it's the same value for UNIX domain sockets. More...


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...


Detailed Description

Create a Local ACE_SOCK stream.

Definition at line 35 of file LSOCK_Stream.h.


Member Typedef Documentation

typedef ACE_UNIX_Addr ACE_LSOCK_Stream::PEER_ADDR
 

Reimplemented from ACE_SOCK_Stream.

Definition at line 56 of file LSOCK_Stream.h.


Member Function Documentation

void ACE_LSOCK_Stream::dump void    const
 

Dump the state of an object.

Reimplemented from ACE_LSOCK.

Definition at line 48 of file LSOCK_Stream.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_TRACE, ACE_LSOCK::dump, ACE_SOCK_Stream::dump, and LM_DEBUG.

00049 {
00050   ACE_TRACE ("ACE_LSOCK_Stream::dump");
00051 
00052   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00053   ACE_SOCK_Stream::dump ();
00054   ACE_LSOCK::dump ();
00055   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00056 }

ASYS_INLINE ACE_HANDLE ACE_LSOCK_Stream::get_handle void    const
 

Get handle.

Reimplemented from ACE_LSOCK.

Definition at line 18 of file LSOCK_Stream.i.

References ACE_TRACE, and ACE_IPC_SAP::get_handle.

Referenced by ACE_LSOCK_Acceptor::accept, ACE_LSOCK_Connector::ACE_LSOCK_Connector, and ACE_LSOCK_Connector::connect.

00019 {
00020   ACE_TRACE ("ACE_LSOCK_Stream::get_handle");
00021   return this->ACE_SOCK_Stream::get_handle ();
00022 }

int ACE_LSOCK_Stream::get_local_addr ACE_Addr   const
 

This method simply returns the "local" addr.

Reimplemented from ACE_SOCK.

Definition at line 19 of file LSOCK_Stream.cpp.

References ACE_TRACE, and ACE_SOCK::get_local_addr.

Referenced by get_remote_addr.

00020 {
00021   ACE_TRACE ("ACE_LSOCK_Stream::get_local_addr");
00022 
00023   // Perform the downcast since <addr> had better be an
00024   // <ACE_UNIX_Addr>.
00025   ACE_UNIX_Addr *rhs_unix_addr = ACE_dynamic_cast (ACE_UNIX_Addr *, &addr);
00026   ACE_UNIX_Addr lhs_unix_addr;
00027 
00028   if (rhs_unix_addr == 0)
00029     return -1;
00030   else if (ACE_SOCK::get_local_addr (lhs_unix_addr) == -1)
00031     return -1;
00032   else
00033     {
00034       *rhs_unix_addr = lhs_unix_addr;
00035       return 0;
00036     }
00037 }

int ACE_LSOCK_Stream::get_remote_addr ACE_Addr   const
 

This method returns the "local" addr since it's the same value for UNIX domain sockets.

Reimplemented from ACE_SOCK.

Definition at line 40 of file LSOCK_Stream.cpp.

References ACE_TRACE, and get_local_addr.

00041 {
00042   ACE_TRACE ("ACE_LSOCK_Stream::get_remote_addr");
00043 
00044   return this->get_local_addr (addr);
00045 }

ssize_t ACE_LSOCK_Stream::recv_msg iovec    iov[],
size_t    n,
ACE_HANDLE &    handle
 

Send iovecs via <writev>.

ssize_t ACE_LSOCK_Stream::send_msg const iovec    iov[],
size_t    n,
ACE_HANDLE    handle
 

Send iovecs via <writev>.

ASYS_INLINE void ACE_LSOCK_Stream::set_handle ACE_HANDLE    fd
 

Overrides set_handle from the base classes.

Reimplemented from ACE_LSOCK.

Definition at line 10 of file LSOCK_Stream.i.

References ACE_TRACE, ACE_LSOCK::set_handle, and ACE_IPC_SAP::set_handle.

Referenced by ACE_LSOCK_Acceptor::accept, ACE_LSOCK_Connector::ACE_LSOCK_Connector, and ACE_LSOCK_Connector::connect.

00011 {
00012   ACE_TRACE ("ACE_LSOCK_Stream::set_handle");
00013   this->ACE_SOCK_Stream::set_handle (fd);
00014   this->ACE_LSOCK::set_handle (fd);
00015 }


Member Data Documentation

ACE_LSOCK_Stream::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented from ACE_LSOCK.

Definition at line 62 of file LSOCK_Stream.h.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:49:43 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002