#include <socks.h>
Inheritance diagram for PSocksProtocol:

Public Types | |
| enum | { DefaultServerPort = 1080 } |
Public Member Functions | |
| PSocksProtocol (WORD port) | |
| virtual | ~PSocksProtocol () |
| BOOL | SetServer (const PString &hostname, const char *service="socks 1080") |
| BOOL | SetServer (const PString &hostname, WORD port) |
| void | SetAuthentication (const PString &username, const PString &password) |
Protected Member Functions | |
| BOOL | ConnectSocksServer (PTCPSocket &thisSocket) |
| virtual void | SetErrorCodes (PChannel::Errors errCode, int osErr)=0 |
| virtual BOOL | SendSocksCommand (PTCPSocket &socket, BYTE command, const char *hostname, PIPSocket::Address addr) |
| virtual BOOL | ReceiveSocksResponse (PTCPSocket &socket, PIPSocket::Address &addr, WORD &port) |
Protected Attributes | |
| PString | serverHost |
| WORD | serverPort |
| PString | authenticationUsername |
| PString | authenticationPassword |
| PIPSocket::Address | remoteAddress |
| WORD | remotePort |
| PIPSocket::Address | localAddress |
| WORD | localPort |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Reimplemented in PSocks4Socket. |
|
||||||||||||||||||||
|
Reimplemented in PSocks4Socket. |
|
||||||||||||
|
Set the username and password for the SOCKS server authentication. This is for the cleartext authentication only, GSSAPI, Kerberos etc is not yet supported. |
|
||||||||||||
|
Implemented in PSocksSocket, and PSocksUDPSocket. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.2