59 const char * service =
"socks 1080" 82 const char * hostname,
146 unsigned queueSize = 5,
242 virtual PObject * Clone()
const;
248 const char * hostname,
284 virtual PObject * Clone()
const;
317 virtual PObject * Clone()
const;
355 unsigned queueSize = 5,
426 #endif // PTLIB_SOCKS_H #define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
WORD localPort
Definition: socks.h:96
Base class for implementing the SOCKS protocol for use with PSocksSocket and PSocksUDPSocket.
Definition: socks.h:47
A socket channel that uses the UDP transport on the Internet Protocol.
Definition: udpsock.h:47
PIPSocket::Address localAddress
Definition: socks.h:95
PSocksProtocol(WORD port)
PString serverHost
Definition: socks.h:89
virtual ~PSocksProtocol()
Definition: socks.h:51
Errors
Normalised error codes.
Definition: channel.h:529
BOOL PBoolean
Definition: object.h:102
This class allows access to RFC1928 compliant SOCKS server.
Definition: socks.h:258
PTCPSocket socksControl
Definition: socks.h:418
This is an ancestor class allowing access to a SOCKS servers (version 4 and 5).
Definition: socks.h:102
virtual PBoolean SendSocksCommand(PTCPSocket &socket, BYTE command, const char *hostname, PIPSocket::Address addr)
The character string class.
Definition: pstring.h:108
WORD remotePort
Definition: socks.h:94
PIPSocket::Address remoteAddress
Definition: socks.h:93
A socket that uses the TCP transport on the Internet Protocol.
Definition: tcpsock.h:44
PString authenticationUsername
Definition: socks.h:91
PBoolean SetServer(const PString &hostname, const char *service="socks 1080")
A class describing an IP address.
Definition: ipsock.h:75
This class allows access to RFC1928 compliant SOCKS server.
Definition: socks.h:290
virtual PBoolean ReceiveSocksResponse(PTCPSocket &socket, PIPSocket::Address &addr, WORD &port)
PBoolean ConnectSocksServer(PTCPSocket &thisSocket)
This class allows access to RFC1928 compliant SOCKS server.
Definition: socks.h:216
virtual void SetErrorCodes(PChannel::Errors errCode, int osErr)=0
void SetAuthentication(const PString &username, const PString &password)
Set the username and password for the SOCKS server authentication.
A network communications channel.
Definition: socket.h:58
WORD serverPort
Definition: socks.h:90
Address serverAddress
Definition: socks.h:419
Reusability
Flags to reuse of port numbers in Listen() function.
Definition: socket.h:84
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
PString authenticationPassword
Definition: socks.h:92
virtual void ReadFrom(istream &strm)
Read the array.