A brief file description. More...
#include "libts.h"
#include "StatSystem.h"
#include "P_Net.h"
#include "I_OneWayTunnel.h"
#include "HttpSessionAccept.h"
Go to the source code of this file.
Data Structures | |
struct | SocksProxy |
struct | SocksAccepter |
Defines | |
#define | SOCKSPROXY_INC_STAT(x) RecIncrRawStat(socksproxy_stat_block, mutex->thread_holding, x) |
Enumerations | |
enum | { socksproxy_http_connections_stat, socksproxy_tunneled_connections_stat, socksproxy_stat_count } |
Functions | |
static void | new_SocksProxy (NetVConnection *netVC) |
void | start_SocksProxy (int port) |
int | socks5ServerAuthHandler (int event, unsigned char *p, void(**h_ptr)(void)) |
Variables | |
static RecRawStatBlock * | socksproxy_stat_block |
ClassAllocator< SocksProxy > | socksProxyAllocator ("socksProxyAllocator") |
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 SocksProxy.cc.
#define SOCKSPROXY_INC_STAT | ( | x | ) | RecIncrRawStat(socksproxy_stat_block, mutex->thread_holding, x) |
Definition at line 45 of file SocksProxy.cc.
Referenced by SocksProxy::mainEvent().
anonymous enum |
socksproxy_http_connections_stat | |
socksproxy_tunneled_connections_stat | |
socksproxy_stat_count |
Definition at line 36 of file SocksProxy.cc.
static void new_SocksProxy | ( | NetVConnection * | netVC | ) | [static] |
Definition at line 496 of file SocksProxy.cc.
References SocksProxy::init(), and socksProxyAllocator.
Referenced by SocksAccepter::mainEvent().
int socks5ServerAuthHandler | ( | int | event, | |
unsigned char * | p, | |||
void(**)(void) | h_ptr | |||
) |
Definition at line 547 of file SocksProxy.cc.
References Debug, ink_assert, SOCKS5_VERSION, SOCKS_AUTH_FILL_WRITE_BUF, SOCKS_AUTH_READ_COMPLETE, and SOCKS_AUTH_WRITE_COMPLETE.
void start_SocksProxy | ( | int | port | ) |
Definition at line 526 of file SocksProxy.cc.
References Debug, NetProcessor::AcceptOptions::local_port, NetProcessor::main_accept(), netProcessor, NO_FD, RecAllocateRawStatBlock(), RECD_INT, RECP_PERSISTENT, RecRawStatSyncCount(), RecRegisterRawStat, RECT_PROCESS, socksproxy_http_connections_stat, socksproxy_stat_count, and socksproxy_tunneled_connections_stat.
Referenced by main().
RecRawStatBlock* socksproxy_stat_block [static] |
Definition at line 43 of file SocksProxy.cc.
ClassAllocator<SocksProxy> socksProxyAllocator("socksProxyAllocator") |
Referenced by SocksProxy::free(), and new_SocksProxy().