Data Structures | Defines | Enumerations | Functions | Variables

SocksProxy.cc File Reference

A brief file description. More...

#include "libts.h"
#include "StatSystem.h"
#include "P_Net.h"
#include "I_OneWayTunnel.h"
#include "HttpSessionAccept.h"
Include dependency graph for SocksProxy.cc:

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 RecRawStatBlocksocksproxy_stat_block
ClassAllocator< SocksProxysocksProxyAllocator ("socksProxyAllocator")

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 SocksProxy.cc.


Define Documentation

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


Enumeration Type Documentation

anonymous enum
Enumerator:
socksproxy_http_connections_stat 
socksproxy_tunneled_connections_stat 
socksproxy_stat_count 

Definition at line 36 of file SocksProxy.cc.


Function Documentation

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 
)
void start_SocksProxy ( int  port  ) 

Variable Documentation

Definition at line 43 of file SocksProxy.cc.

Referenced by SocksProxy::free(), and new_SocksProxy().