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

TLI_Acceptor.cpp File Reference

#include "ace_pch.h"
#include "ace/TLI_Acceptor.h"
#include "ace/Log_Msg.h"
#include "ace/ACE.h"

Include dependency graph for TLI_Acceptor.cpp:

Include dependency graph

Go to the source code of this file.

Compounds

struct  ACE_TLI_Request
class  ACE_TLI_Request_Queue

Functions

const char * get_rcsid_ace_TLI_Acceptor (const char *)
ACE_HANDLE open_new_endpoint (ACE_HANDLE listen_handle, const char dev[], struct t_call *callp, int rwf, ACE_Addr *remote_sap=0)

Variables

const char * rcsid_ace_TLI_Acceptor = get_rcsid_ace_TLI_Acceptor ( rcsid_ace_TLI_Acceptor )


Function Documentation

const char* get_rcsid_ace_TLI_Acceptor const char *    [inline, static]
 

Definition at line 8 of file TLI_Acceptor.cpp.

00008 : TLI_Acceptor.cpp,v 1.1.1.4.2.1 2003/03/13 19:44:22 chad Exp $")

ACE_HANDLE open_new_endpoint ACE_HANDLE    listen_handle,
const char    dev[],
struct t_call *    callp,
int    rwf,
ACE_Addr   remote_sap = 0
[static]
 

Definition at line 125 of file TLI_Acceptor.cpp.

References ACE_TRACE, ACE_Addr::get_addr, ACE_Addr::get_size, ACE_OS::ioctl, ACE_OS_TLI::t_bind, t_bind, ACE_OS_TLI::t_open, and ACE_OS_TLI::t_snddis.

Referenced by ACE_TLI_Acceptor::accept, and ACE_TLI_Request_Queue::enqueue.

00130 {
00131   ACE_TRACE ("open_new_endpoint");
00132 #if defined (ACE_PSOS)
00133   ACE_HANDLE fd = ACE_OS::t_open ((char *) dev,
00134                                   S_IRUSR | S_IWUSR,
00135                                   0);
00136 #else
00137   ACE_HANDLE fd = ACE_OS::t_open ((char *) dev,
00138                                   O_RDWR,
00139                                   0);
00140 #endif /* ACE_PSOS */
00141 
00142    struct t_bind req, *req_p = 0;
00143    if (remote_sap != 0)
00144      {
00145        req.qlen = 0;
00146        req.addr.buf = (char *) remote_sap->get_addr ();
00147        req.addr.len = remote_sap->get_size ();
00148        req.addr.maxlen = remote_sap->get_size ();
00149        req_p = &req;
00150      }
00151 
00152   if (fd == ACE_INVALID_HANDLE
00153       || ACE_OS::t_bind (fd, req_p, 0) == -1)
00154     fd = ACE_INVALID_HANDLE;
00155 #if defined (I_PUSH) && !defined (ACE_HAS_FORE_ATM_XTI)
00156   else if (rwf != 0 && ACE_OS::ioctl (fd,
00157                                       I_PUSH,
00158                                       ACE_const_cast (char *, "tirdwr"))
00159                                       == ACE_INVALID_HANDLE)
00160     fd = ACE_INVALID_HANDLE;
00161 #endif /* I_PUSH */
00162 
00163   if (fd == ACE_INVALID_HANDLE)
00164     ACE_OS::t_snddis (listen_handle,
00165                       callp);
00166   return fd;
00167 }


Variable Documentation

const char* rcsid_ace_TLI_Acceptor = get_rcsid_ace_TLI_Acceptor ( rcsid_ace_TLI_Acceptor ) [static]
 

Definition at line 8 of file TLI_Acceptor.cpp.


Generated on Mon Jun 16 12:38:33 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002