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"
Go to the source code of this file.
A brief file description.
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 NET_CLEAR_DYN_STAT | ( | x | ) |
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) |
Definition at line 64 of file P_Net.h.
Referenced by UnixNetVConnection::load_buffer_and_write(), SSLNetVConnection::load_buffer_and_write(), read_from_net(), write_to_net(), and write_to_net_io().
#define NET_DECREMENT_DYN_STAT | ( | _x | ) | RecIncrRawStatSum(net_rsb, mutex->thread_holding, (int)_x, -1) |
Definition at line 70 of file P_Net.h.
Referenced by NetAccept::acceptEvent(), NetAccept::acceptFastEvent(), and NetAccept::acceptLoopEvent().
#define NET_INCREMENT_DYN_STAT | ( | _x | ) | RecIncrRawStatSum(net_rsb, mutex->thread_holding, (int)_x, 1) |
Definition at line 67 of file P_Net.h.
Referenced by UnixNetProcessor::accept_internal(), InactivityCop::check_inactivity(), SocksEntry::free(), and NetHandler::mainNetEvent().
#define NET_READ_DYN_STAT | ( | _x, | ||
_count, | ||||
_sum | ||||
) |
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)) |
Definition at line 90 of file P_Net.h.
Referenced by NetAccept::acceptFastEvent(), UnixNetProcessor::connect_re_internal(), NetAccept::do_blocking_accept(), UnixNetVConnection::free(), SSLNetVConnection::free(), net_accept(), and TSVConnFdCreate().
#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().
enum Net_Stats |
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.