Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

PSocks4Socket Class Reference

#include <socks.h>

Inheritance diagram for PSocks4Socket:

PSocksSocket PTCPSocket PSocksProtocol PIPSocket PSocket PChannel PObject List of all members.

Public Methods

 PSocks4Socket (WORD port=0)
 PSocks4Socket (const PString &host, WORD port=0)
virtual PObjectClone () const

Protected Methods

virtual BOOL SendSocksCommand (PTCPSocket &socket, BYTE command, const char *hostname, PIPSocket::Address addr)
virtual BOOL ReceiveSocksResponse (PTCPSocket &socket, PIPSocket::Address &addr, WORD &port)

Detailed Description

This class allows access to RFC1928 compliant SOCKS server.


Constructor & Destructor Documentation

PSocks4Socket::PSocks4Socket WORD    port = 0
 

PSocks4Socket::PSocks4Socket const PString   host,
WORD    port = 0
 


Member Function Documentation

virtual PObject* PSocks4Socket::Clone   [virtual]
 

Create a copy of the class on the heap. The exact semantics of the descendent class determine what is required to make a duplicate of the instance. Not all classes can even do a clone operation.

The main user of the clone function is the <A>PDictionary class as it requires copies of the dictionary keys.

The default behaviour is for this function to assert.

Returns:
pointer to new copy of the class instance.

Reimplemented from PTCPSocket.

virtual BOOL PSocks4Socket::ReceiveSocksResponse PTCPSocket   socket,
PIPSocket::Address   addr,
WORD &    port
[protected, virtual]
 

Reimplemented from PSocksProtocol.

virtual BOOL PSocks4Socket::SendSocksCommand PTCPSocket   socket,
BYTE    command,
const char *    hostname,
PIPSocket::Address    addr
[protected, virtual]
 

Reimplemented from PSocksProtocol.


The documentation for this class was generated from the following file:
Generated on Fri Aug 13 15:50:10 2004 for PWLib by doxygen1.2.18