Defines | Enumerations | Variables

P_Net.h File Reference

A brief file description. More...

#include "libts.h"
#include "P_EventSystem.h"
#include "I_Net.h"
#include "P_NetVConnection.h"
#include "P_UnixNet.h"
#include "P_UnixNetProcessor.h"
#include "P_NetAccept.h"
#include "P_UnixNetVConnection.h"
#include "P_UnixPollDescriptor.h"
#include "P_Socks.h"
#include "P_CompletionUtil.h"
#include "P_NetVCTest.h"
#include "P_LibBulkIO.h"
#include "P_SSLNetVConnection.h"
#include "P_SSLNetProcessor.h"
#include "P_SSLNetAccept.h"
#include "P_SSLCertLookup.h"
Include dependency graph for P_Net.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SSL_HANDSHAKE_WANT_READ   6
#define SSL_HANDSHAKE_WANT_WRITE   7
#define SSL_HANDSHAKE_WANT_ACCEPT   8
#define SSL_HANDSHAKE_WANT_CONNECT   9
#define NET_DEBUG_COUNT_DYN_STAT(_x, _y)   RecIncrRawStatCount(net_rsb, mutex->thread_holding, (int)_x, _y)
#define NET_INCREMENT_DYN_STAT(_x)   RecIncrRawStatSum(net_rsb, mutex->thread_holding, (int)_x, 1)
#define NET_DECREMENT_DYN_STAT(_x)   RecIncrRawStatSum(net_rsb, mutex->thread_holding, (int)_x, -1)
#define NET_SUM_DYN_STAT(_x, _r)   RecIncrRawStatSum(net_rsb, mutex->thread_holding, (int)_x, _r)
#define NET_READ_DYN_SUM(_x, _sum)   RecGetRawStatSum(net_rsb, (int)_x, &_sum)
#define NET_READ_DYN_STAT(_x, _count, _sum)
#define NET_CLEAR_DYN_STAT(x)
#define NET_SUM_GLOBAL_DYN_STAT(_x, _r)   RecIncrGlobalRawStatSum(net_rsb, (_x), (_r))
#define NET_READ_GLOBAL_DYN_SUM(_x, _sum)   RecGetGlobalRawStatSum(net_rsb, _x, &_sum)
#define NET_SYSTEM_MODULE_VERSION
#define NetDebug   if (0) dummy_debug

Enumerations

enum  Net_Stats {
  net_handler_run_stat, net_read_bytes_stat, net_write_bytes_stat, net_connections_currently_open_stat,
  net_accepts_currently_open_stat, net_calls_to_readfromnet_stat, net_calls_to_readfromnet_afterpoll_stat, net_calls_to_read_stat,
  net_calls_to_read_nodata_stat, net_calls_to_writetonet_stat, net_calls_to_writetonet_afterpoll_stat, net_calls_to_write_stat,
  net_calls_to_write_nodata_stat, socks_connections_successful_stat, socks_connections_unsuccessful_stat, socks_connections_currently_open_stat,
  inactivity_cop_lock_acquire_failure_stat, Net_Stat_Count
}

Variables

RecRawStatBlocknet_rsb
static size_t const CLIENT_CONNECTION_FIRST_READ_BUFFER_SIZE_INDEX = BUFFER_SIZE_INDEX_4K
 Default amount of buffer space to use for the initial read on an incoming connection.

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file P_Net.h.


Define Documentation

#define NET_CLEAR_DYN_STAT (   x  ) 
Value:
do { \
        RecSetRawStatSum(net_rsb, x, 0); \
        RecSetRawStatCount(net_rsb, x, 0); \
} while (0);

Definition at line 83 of file P_Net.h.

Referenced by register_net_stats().

#define NET_DEBUG_COUNT_DYN_STAT (   _x,
  _y 
)    RecIncrRawStatCount(net_rsb, mutex->thread_holding, (int)_x, _y)
#define NET_DECREMENT_DYN_STAT (   _x  )     RecIncrRawStatSum(net_rsb, mutex->thread_holding, (int)_x, -1)
#define NET_INCREMENT_DYN_STAT (   _x  )     RecIncrRawStatSum(net_rsb, mutex->thread_holding, (int)_x, 1)
#define NET_READ_DYN_STAT (   _x,
  _count,
  _sum 
)
Value:
do {\
RecGetRawStatSum(net_rsb, (int)_x, &_sum);          \
RecGetRawStatCount(net_rsb, (int)_x, &_count);         \
} while (0)

Definition at line 78 of file P_Net.h.

Referenced by ShowStats::mainEvent().

#define NET_READ_DYN_SUM (   _x,
  _sum 
)    RecGetRawStatSum(net_rsb, (int)_x, &_sum)

Definition at line 76 of file P_Net.h.

Referenced by ShowStats::mainEvent().

#define NET_READ_GLOBAL_DYN_SUM (   _x,
  _sum 
)    RecGetGlobalRawStatSum(net_rsb, _x, &_sum)

Definition at line 91 of file P_Net.h.

Referenced by ShowStats::mainEvent(), and net_connections_to_throttle().

#define NET_SUM_DYN_STAT (   _x,
  _r 
)    RecIncrRawStatSum(net_rsb, mutex->thread_holding, (int)_x, _r)

Definition at line 73 of file P_Net.h.

Referenced by read_from_net(), and write_to_net_io().

#define NET_SUM_GLOBAL_DYN_STAT (   _x,
  _r 
)    RecIncrGlobalRawStatSum(net_rsb, (_x), (_r))
#define NET_SYSTEM_MODULE_VERSION
#define NetDebug   if (0) dummy_debug

Definition at line 120 of file P_Net.h.

Referenced by NetHandler::mainNetEvent(), and PollCont::pollEvent().

#define SSL_HANDSHAKE_WANT_ACCEPT   8

Definition at line 61 of file P_Net.h.

Referenced by write_to_net_io().

#define SSL_HANDSHAKE_WANT_CONNECT   9

Definition at line 62 of file P_Net.h.

Referenced by write_to_net_io().

#define SSL_HANDSHAKE_WANT_READ   6

Definition at line 59 of file P_Net.h.

Referenced by write_to_net_io().

#define SSL_HANDSHAKE_WANT_WRITE   7

Definition at line 60 of file P_Net.h.

Referenced by write_to_net_io().


Enumeration Type Documentation

enum Net_Stats
Enumerator:
net_handler_run_stat 
net_read_bytes_stat 
net_write_bytes_stat 
net_connections_currently_open_stat 
net_accepts_currently_open_stat 
net_calls_to_readfromnet_stat 
net_calls_to_readfromnet_afterpoll_stat 
net_calls_to_read_stat 
net_calls_to_read_nodata_stat 
net_calls_to_writetonet_stat 
net_calls_to_writetonet_afterpoll_stat 
net_calls_to_write_stat 
net_calls_to_write_nodata_stat 
socks_connections_successful_stat 
socks_connections_unsuccessful_stat 
socks_connections_currently_open_stat 
inactivity_cop_lock_acquire_failure_stat 
Net_Stat_Count 

Definition at line 35 of file P_Net.h.


Variable Documentation

size_t const CLIENT_CONNECTION_FIRST_READ_BUFFER_SIZE_INDEX = BUFFER_SIZE_INDEX_4K [static]

Default amount of buffer space to use for the initial read on an incoming connection.

This is an IOBufferBlock index, not the size in bytes.

Definition at line 127 of file P_Net.h.

Definition at line 34 of file Net.cc.