User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - OS - Network - SocketC
 

  PUBLIC
SocketC::SocketC(void)
SocketC::SocketC(StringC,bool)
SocketC::SocketC(StringC,UIntT,bool)
SocketC::Fd(void) const
SocketC::IsOpen(void) const
SocketC::Listen(bool)
SocketC::Close(void)
SocketC::SetDontClose(bool)
SocketC::ConnectedHost(void)
SocketC::ConnectedPort(void)
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   SocketC   
 
Socket connection handle.
 
include "Ravl/OS/Socket.hh"
Created:15/02/2000 
User Level:Normal
Library:RavlNet
Example:exSocket.cc
In Scope:RavlN

Comments:
For dealing with stream sockets.

Parent Classes: Methods:
SocketC()
Default constructor.
creates an invalid handle.

SocketC(StringC name,bool server = false)
Open socket.

SocketC(StringC name,UIntT portno,bool server = false)
Open socket.

int Fd() const
Access file descriptor.

bool IsOpen() const
Test if socket is open.

SocketC Listen(bool 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(bool ndontClose)
Setup don't close flag.

StringC ConnectedHost()
Get host name

IntT ConnectedPort()
Get other port number.

#include "Ravl/RefCounter.hh"
const RCHandleC<SocketBodyC> & operator =(const RCHandleC<SocketBodyC> & oth)
Assign handle.

RCHandleC<SocketBodyC> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<SocketBodyC> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<SocketBodyC> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<SocketBodyC> & obj)

istream & operator >>(istream & strm,RCHandleC<SocketBodyC> & obj)


Maintainer:Charles Galambos, Created: 15/02/2000, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002