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

SSL_SOCK_Acceptor.i

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: SSL_SOCK_Acceptor.i,v 1.1.1.2 2003/02/21 18:36:32 chad Exp $
00004 
00005 
00006 ASYS_INLINE
00007 ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor (void)
00008   : acceptor_ ()
00009 {
00010   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor");
00011 }
00012 
00013 ASYS_INLINE
00014 ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor (const ACE_Addr &local_sap,
00015                                               int reuse_addr,
00016                                               int protocol_family,
00017                                               int backlog,
00018                                               int protocol)
00019   : acceptor_ (local_sap,
00020                reuse_addr,
00021                protocol_family,
00022                backlog,
00023                protocol)
00024 {
00025   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor");
00026 
00027   this->set_handle (this->acceptor_.get_handle ());
00028 }
00029 
00030 ASYS_INLINE
00031 ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor (const ACE_Addr &local_sap,
00032                                               ACE_Protocol_Info *protocolinfo,
00033                                               ACE_SOCK_GROUP g,
00034                                               u_long flags,
00035                                               int reuse_addr,
00036                                               int protocol_family,
00037                                               int backlog,
00038                                               int protocol)
00039   : acceptor_ (local_sap,
00040                protocolinfo,
00041                g,
00042                flags,
00043                reuse_addr,
00044                protocol_family,
00045                backlog,
00046                protocol)
00047 {
00048   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor");
00049 
00050   this->set_handle (this->acceptor_.get_handle ());
00051 }
00052 
00053 ASYS_INLINE int
00054 ACE_SSL_SOCK_Acceptor::open (const ACE_Addr &local_sap,
00055                              int reuse_addr,
00056                              int protocol_family,
00057                              int backlog,
00058                              int protocol)
00059 {
00060   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::open");
00061   if (this->acceptor_.open (local_sap,
00062                             reuse_addr,
00063                             protocol_family,
00064                             backlog,
00065                             protocol) != 0)
00066     return -1;
00067   else
00068     this->set_handle (this->acceptor_.get_handle ());
00069 
00070   return 0;
00071 }
00072 
00073 ASYS_INLINE int
00074 ACE_SSL_SOCK_Acceptor::close (void)
00075 {
00076   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::close ()");
00077 
00078   int result = this->acceptor_.close ();
00079   this->set_handle (ACE_INVALID_HANDLE);
00080 
00081   return result;
00082 }

Generated on Mon Jun 16 13:15:55 2003 for ACE_SSL by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002