PSocks4Socket Class Reference

#include <socks.h>

Inheritance diagram for PSocks4Socket:

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

Public Member Functions

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

Protected Member Functions

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 (  )  const [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 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::SendSocksCommand ( PTCPSocket socket,
BYTE  command,
const char *  hostname,
PIPSocket::Address  addr 
) [protected, virtual]

Reimplemented from PSocksProtocol.

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

Reimplemented from PSocksProtocol.


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:25:07 2008 for PTLib by  doxygen 1.5.1