Public Types | Public Member Functions | Data Fields

NetProcessor::AcceptOptions Struct Reference

Options for accept. More...

#include <I_NetProcessor.h>

Collaboration diagram for NetProcessor::AcceptOptions:
Collaboration graph
[legend]

Public Types

typedef AcceptOptions self
 Self reference type.

Public Member Functions

 AcceptOptions ()
 Default constructor.
selfreset ()
 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 with NET_EVENT_ACCEPT_SUCCEED or NET_EVENT_ACCEPT_FAILED on 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.

Detailed Description

Options for accept.

Definition at line 46 of file I_NetProcessor.h.


Member Typedef Documentation

Self reference type.

Definition at line 47 of file I_NetProcessor.h.


Constructor & Destructor Documentation

NetProcessor::AcceptOptions::AcceptOptions (  )  [inline]

Default constructor.

Instance is constructed with default values.

Definition at line 100 of file I_NetProcessor.h.

References reset().


Member Function Documentation

NetProcessor::AcceptOptions & NetProcessor::AcceptOptions::reset (  ) 

Field Documentation

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.

Note:
Ignored if an explicit incoming address is set in the the configuration (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().

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().

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().


The documentation for this struct was generated from the following files: