|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
For dealing with stream sockets.
Parent Classes:
Methods:
- SocketC()
-
Default constructor.
creates an invalid handle.
- SocketC(StringC name,BooleanT server = false)
-
Open socket.
- SocketC(StringC name,UIntT portno,BooleanT server = false)
-
Open socket.
- int Fd() const
-
Access file descriptor.
- BooleanT IsOpen() const
-
Test if socket is open.
- SocketC Listen(BooleanT block = true)
-
Listen for a connection from a client.
Can only be used on server sockets.
If block is true, the call will not return until there
is a valid client.
- void Close()
-
Close the socket.
- void SetDontClose(BooleanT ndontClose)
-
Setup don't close flag.
- StringC ConnectedHost()
-
Get host name
- IntT ConnectedPort()
-
Get other port number.
- BooleanT IsValid() const
-
Check its a valid handle.
- BooleanT IsValidObject() const
-
Check its a valid handle, and that the object is pointed to is also valid.
- RCHandleC<SocketBodyC> & operator=(const RCHandleC<SocketBodyC> & oth)
-
Assignment.
- BooleanT operator==(const RCHandleC<SocketBodyC> & oth) const
-
Comparison operator.
- BooleanT operator!=(const RCHandleC<SocketBodyC> & oth) const
-
Comparison operator.
- UIntT Hash() const
-
Hash function.x
- BooleanT IsConst() const
-
Is object constant ?
- BooleanT IsNotConst() const
-
Is object not constant ?
- void SetConst(void) const
-
Lock the object.
This is const as a convience though it actual modified the
object, often object you wish to ensure are constant already
have const set.
protected:
- void Invalidate()
-
Turn this into an invalid handle.
- SocketBodyC & Body()
-
Direct access to body.
- const SocketBodyC & Body() const
-
Constant access to body.
|
Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|