Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PObject * PTCPSocket::Clone (  )  const [virtual, inherited]

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 PObject.

Reimplemented in PSocks4Socket, and PSocks5Socket.

Definition at line 2692 of file sockets.cxx.

{
  return new PTCPSocket(port);
}


Generated by  Doxygen 1.6.0   Back to index