Data Structures | Defines | Enumerations

I_Socks.h File Reference

A brief file description. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SocksAddrType

Defines

#define SOCKS_WITH_TS
#define SOCKS_DEFAULT_VERSION   0
#define SOCKS4_VERSION   4
#define SOCKS5_VERSION   5
#define SOCKS_CONNECT   1
#define SOCKS4_REQ_LEN   9
#define SOCKS4_REP_LEN   8
#define SOCKS5_REP_LEN   262
#define SOCKS4_REQ_GRANTED   90
#define SOCKS4_CONN_FAILED   91
#define SOCKS5_REQ_GRANTED   0
#define SOCKS5_CONN_FAILED   1

Enumerations

enum  { NORMAL_SOCKS = 0, NO_SOCKS = 48 }
enum  { SOCKS_ATYPE_NONE = 0, SOCKS_ATYPE_IPV4 = 1, SOCKS_ATYPE_FQHN = 3, SOCKS_ATYPE_IPV6 = 4 }

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


Define Documentation

#define SOCKS4_CONN_FAILED   91

Definition at line 42 of file I_Socks.h.

Referenced by SocksProxy::sendResp().

#define SOCKS4_REP_LEN   8

Definition at line 39 of file I_Socks.h.

Referenced by SocksEntry::mainEvent().

#define SOCKS4_REQ_GRANTED   90

Definition at line 41 of file I_Socks.h.

Referenced by SocksProxy::sendResp().

#define SOCKS4_REQ_LEN   9

Definition at line 38 of file I_Socks.h.

#define SOCKS4_VERSION   4

Definition at line 35 of file I_Socks.h.

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

#define SOCKS5_CONN_FAILED   1

Definition at line 44 of file I_Socks.h.

Referenced by SocksProxy::sendResp().

#define SOCKS5_REP_LEN   262

Definition at line 40 of file I_Socks.h.

Referenced by SocksEntry::mainEvent().

#define SOCKS5_REQ_GRANTED   0

Definition at line 43 of file I_Socks.h.

Referenced by SocksProxy::sendResp().

#define SOCKS5_VERSION   5
#define SOCKS_CONNECT   1

Definition at line 37 of file I_Socks.h.

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

#define SOCKS_DEFAULT_VERSION   0

Definition at line 34 of file I_Socks.h.

Referenced by UnixNetProcessor::connect_re_internal(), and SocksEntry::init().

#define SOCKS_WITH_TS

Definition at line 31 of file I_Socks.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
NORMAL_SOCKS 
NO_SOCKS 

Definition at line 46 of file I_Socks.h.

anonymous enum
Enumerator:
SOCKS_ATYPE_NONE 
SOCKS_ATYPE_IPV4 
SOCKS_ATYPE_FQHN 
SOCKS_ATYPE_IPV6 

Definition at line 54 of file I_Socks.h.