Data Structures | Typedefs | Enumerations | Functions | Variables

P_Socks.h File Reference

A brief file description. More...

#include "P_EventSystem.h"
#include "I_Socks.h"
#include "ParentSelection.h"
#include <ts/IpMap.h>
Include dependency graph for P_Socks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  socks_conf_struct
struct  SocksEntry

Typedefs

typedef int(* SocksAuthHandler )(int event, unsigned char *buf, void(**h_ptr)(void))
typedef UnixNetVConnection SocksNetVC
typedef int(SocksEntry::* SocksEntryHandler )(int, void *)

Enumerations

enum  { SOCKS_AUTH_OPEN, SOCKS_AUTH_WRITE_COMPLETE, SOCKS_AUTH_READ_COMPLETE, SOCKS_AUTH_FILL_WRITE_BUF }

Functions

void start_SocksProxy (int port)
int loadSocksAuthInfo (int fd, socks_conf_struct *socks_stuff)
TS_INLINE int invokeSocksAuthHandler (SocksAuthHandler &h, int arg1, unsigned char *arg2)
void loadSocksConfiguration (socks_conf_struct *socks_conf_stuff)
int socks5BasicAuthHandler (int event, unsigned char *p, void(**)(void))
int socks5PasswdAuthHandler (int event, unsigned char *p, void(**)(void))
int socks5ServerAuthHandler (int event, unsigned char *p, void(**)(void))

Variables

struct socks_conf_structg_socks_conf_stuff
ClassAllocator< SocksEntrysocksAllocator

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_Socks.h.


Typedef Documentation

typedef int(* SocksAuthHandler)(int event, unsigned char *buf, void(**h_ptr)(void))

Definition at line 87 of file P_Socks.h.

typedef int(SocksEntry::* SocksEntryHandler)(int, void *)

Definition at line 151 of file P_Socks.h.

Definition at line 100 of file P_Socks.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
SOCKS_AUTH_OPEN 
SOCKS_AUTH_WRITE_COMPLETE 
SOCKS_AUTH_READ_COMPLETE 
SOCKS_AUTH_FILL_WRITE_BUF 

Definition at line 34 of file P_Socks.h.


Function Documentation

TS_INLINE int invokeSocksAuthHandler ( SocksAuthHandler h,
int  arg1,
unsigned char *  arg2 
)

Definition at line 90 of file P_Socks.h.

Referenced by SocksProxy::mainEvent(), and SocksEntry::mainEvent().

int loadSocksAuthInfo ( int  fd,
socks_conf_struct socks_stuff 
)
void loadSocksConfiguration ( socks_conf_struct socks_conf_stuff  ) 
int socks5BasicAuthHandler ( int  event,
unsigned char *  p,
void(**)(void)   
)
int socks5PasswdAuthHandler ( int  event,
unsigned char *  p,
void(**)(void)   
)
int socks5ServerAuthHandler ( int  event,
unsigned char *  p,
void(**)(void)   
)
void start_SocksProxy ( int  port  ) 

Variable Documentation

Definition at line 37 of file Socks.cc.