Options for accept.  
More...
#include <I_NetProcessor.h>

| Public Types | |
| typedef AcceptOptions | self | 
| Self reference type. | |
| Public Member Functions | |
| AcceptOptions () | |
| Default constructor. | |
| self & | reset () | 
| Reset all values to defaults. | |
| Data Fields | |
| int | local_port | 
| Port on which to listen. | |
| IpAddr | local_ip | 
| Local address to bind for accept. | |
| int | ip_family | 
| IP address family. | |
| int | accept_threads | 
| Should we use accept threads? If so, how many? | |
| EventType | etype | 
| Event type to generate on accept. | |
| bool | f_callback_on_open | 
| If true, the continuation is called back withNET_EVENT_ACCEPT_SUCCEEDorNET_EVENT_ACCEPT_FAILEDon success and failure resp. | |
| bool | localhost_only | 
| Accept only on the loopback address. | |
| bool | frequent_accept | 
| Are frequent accepts expected? Default: false. | |
| bool | backdoor | 
| int | recv_bufsize | 
| Socket receive buffer size. | |
| int | send_bufsize | 
| Socket transmit buffer size. | |
| uint32_t | sockopt_flags | 
| Socket options for sockopt. | |
| uint32_t | packet_mark | 
| uint32_t | packet_tos | 
| bool | f_inbound_transparent | 
| Transparency on client (user agent) connection. | |
Options for accept. 
Definition at line 46 of file I_NetProcessor.h.
Self reference type.
Definition at line 47 of file I_NetProcessor.h.
| NetProcessor::AcceptOptions::AcceptOptions | ( | ) |  [inline] | 
Default constructor.
Instance is constructed with default values.
Definition at line 100 of file I_NetProcessor.h.
References reset().
| NetProcessor::AcceptOptions & NetProcessor::AcceptOptions::reset | ( | ) | 
Reset all values to defaults.
Definition at line 32 of file UnixNetProcessor.cc.
References accept_threads, backdoor, etype, f_callback_on_open, f_inbound_transparent, frequent_accept, IpAddr::invalidate(), ip_family, local_ip, local_port, localhost_only, packet_mark, packet_tos, recv_bufsize, send_bufsize, and sockopt_flags.
Referenced by AcceptOptions().
Should we use accept threads? If so, how many?
Definition at line 60 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), LogCollationAccept::LogCollationAccept(), make_net_accept_options(), reset(), start_HttpProxyServerBackDoor(), and TSNetAccept().
Definition at line 75 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), reset(), and start_HttpProxyServerBackDoor().
Event type to generate on accept.
Definition at line 62 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), ClusterAccept::ClusterAcceptEvent(), and reset().
If true, the continuation is called back with NET_EVENT_ACCEPT_SUCCEED or NET_EVENT_ACCEPT_FAILED on success and failure resp. 
Definition at line 67 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), and reset().
Transparency on client (user agent) connection.
Definition at line 96 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), make_net_accept_options(), and reset().
Are frequent accepts expected? Default: false. 
Definition at line 74 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), reset(), and TSNetAccept().
IP address family.
local_ip). If neither is set IPv4 is used. Definition at line 58 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), ClusterAccept::ClusterAcceptEvent(), LogCollationAccept::LogCollationAccept(), make_net_accept_options(), reset(), and TSNetAccept().
Local address to bind for accept.
If not set -> any address.
Definition at line 54 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), make_net_accept_options(), and reset().
Port on which to listen.
0 => don't care, which is useful if the socket is already bound.
Definition at line 51 of file I_NetProcessor.h.
Referenced by NetProcessor::accept(), UnixNetProcessor::accept_internal(), ClusterAccept::ClusterAcceptEvent(), LogCollationAccept::LogCollationAccept(), NetProcessor::main_accept(), make_net_accept_options(), reset(), start_HttpProxyServerBackDoor(), start_SocksProxy(), and TSNetAccept().
Accept only on the loopback address.
Default: false. 
Definition at line 71 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), ClusterAccept::ClusterAcceptEvent(), reset(), and start_HttpProxyServerBackDoor().
Definition at line 86 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), MakeHttpProxyAcceptor(), and reset().
Definition at line 87 of file I_NetProcessor.h.
Referenced by UnixNetProcessor::accept_internal(), MakeHttpProxyAcceptor(), and reset().
Socket receive buffer size.
0 => OS default.
Definition at line 79 of file I_NetProcessor.h.
Referenced by NetProcessor::accept(), UnixNetProcessor::accept_internal(), ClusterAccept::ClusterAcceptEvent(), NetProcessor::main_accept(), MakeHttpProxyAcceptor(), and reset().
Socket transmit buffer size.
0 => OS default.
Definition at line 82 of file I_NetProcessor.h.
Referenced by NetProcessor::accept(), UnixNetProcessor::accept_internal(), ClusterAccept::ClusterAcceptEvent(), NetProcessor::main_accept(), MakeHttpProxyAcceptor(), and reset().
Socket options for sockopt. 
0 => do not set options.
Definition at line 85 of file I_NetProcessor.h.
Referenced by NetProcessor::accept(), UnixNetProcessor::accept_internal(), NetProcessor::main_accept(), and reset().
 1.7.1
 1.7.1