Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / ace / SSL / SSL_SOCK_Acceptor.inl
blobcfe1cb906ad13bd3775b665c16bca8a3ec7a6033
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE
5 ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor ()
6   : acceptor_ ()
8   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor");
11 ACE_INLINE
12 ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor (const ACE_Addr &local_sap,
13                                               int reuse_addr,
14                                               int protocol_family,
15                                               int backlog,
16                                               int protocol,
17                                               int ipv6_only)
18   : acceptor_ (local_sap,
19                reuse_addr,
20                protocol_family,
21                backlog,
22                protocol,
23                ipv6_only)
25   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor");
27   this->set_handle (this->acceptor_.get_handle ());
30 ACE_INLINE
31 ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor (const ACE_Addr &local_sap,
32                                               ACE_Protocol_Info *protocolinfo,
33                                               ACE_SOCK_GROUP g,
34                                               u_long flags,
35                                               int reuse_addr,
36                                               int protocol_family,
37                                               int backlog,
38                                               int protocol,
39                                               int ipv6_only)
40   : acceptor_ (local_sap,
41                protocolinfo,
42                g,
43                flags,
44                reuse_addr,
45                protocol_family,
46                backlog,
47                protocol,
48                ipv6_only)
50   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor");
52   this->set_handle (this->acceptor_.get_handle ());
55 ACE_INLINE int
56 ACE_SSL_SOCK_Acceptor::open (const ACE_Addr &local_sap,
57                              int reuse_addr,
58                              int protocol_family,
59                              int backlog,
60                              int protocol,
61                              int ipv6_only)
63   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::open");
64   if (this->acceptor_.open (local_sap,
65                             reuse_addr,
66                             protocol_family,
67                             backlog,
68                             protocol,
69                             ipv6_only) != 0)
70     return -1;
71   else
72     this->set_handle (this->acceptor_.get_handle ());
74   return 0;
77 ACE_INLINE int
78 ACE_SSL_SOCK_Acceptor::close ()
80   ACE_TRACE ("ACE_SSL_SOCK_Acceptor::close ()");
82   int const result = this->acceptor_.close ();
83   this->set_handle (ACE_INVALID_HANDLE);
85   return result;
88 ACE_END_VERSIONED_NAMESPACE_DECL