Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clSockClie Class Reference

Socket client class. More...

#include <SockClie.hh>

List of all members.

Public Member Functions

 clSockClie ()
 ~clSockClie ()
int Connect (const char *, const char *, int)
 Connect to TCP server, set either hostname or hostaddr and the other to NULL.

int Connect (const char *)
 Connect to Unix domain server.

int GetErrno ()
 Get errno.


Private Attributes

int iErrno


Detailed Description

Socket client class.

Definition at line 34 of file SockClie.hh.


Constructor & Destructor Documentation

clSockClie::clSockClie  ) 
 

Definition at line 43 of file SockClie.cc.

References iErrno.

clSockClie::~clSockClie  ) 
 

Definition at line 49 of file SockClie.cc.


Member Function Documentation

int clSockClie::Connect const char *  ,
const char *  ,
int 
 

Connect to TCP server, set either hostname or hostaddr and the other to NULL.

Parameters:
cpHostName Hostname
cpHostAddr Host address
iHostPort Host port
Returns:
Handle, -1 on error

Definition at line 54 of file SockClie.cc.

References iErrno.

Referenced by clStreamDist::AudioInThread(), Connect(), clSubLocate::ConnectDir(), clSpectrum::ConnectStream(), clSaveSrv::ConnectStream(), clLevel::ConnectStream(), clDirection3::ConnectStream(), clDirection2::ConnectStream(), clBeamAudio::ConnectStream(), clGUILocate::ConnectToServer(), clGUILevel::ConnectToServer(), clDirection::Exec(), clLofarDemon::GetDataHdr(), clSpectGUI::InitConnection(), clGUILofar::InitConnection(), clGUIDir::InitConnection(), clBeamAudioUI::InitConnection(), main(), clBeamSrv2Master::Main(), clBeamSrvMaster::Main(), clSoundUI::OnClickedEvent(), and clSoundProxy::SoundInThread().

int clSockClie::Connect const char *   ) 
 

Connect to Unix domain server.

In QNX (which doesn't support domain sockets) this is faked to TCP socket and filename should be port number.

Parameters:
cpSockName Socket filename
Returns:
Handle, -1 on error

Definition at line 114 of file SockClie.cc.

References Connect(), GLOBAL_SOCKET_PATH, iErrno, and UNIX_PATH_MAX.

int clSockClie::GetErrno  )  [inline]
 

Get errno.

Returns:
errno

Definition at line 65 of file SockClie.hh.

References iErrno.

Referenced by clStreamDist::AudioInThread(), clSaveSrv::ConnectStream(), clBeamSrv2Master::Main(), clBeamSrvMaster::Main(), and clSoundProxy::SoundInThread().


Member Data Documentation

int clSockClie::iErrno [private]
 

Definition at line 36 of file SockClie.hh.

Referenced by clSockClie(), Connect(), and GetErrno().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:23 2003 for HASAS by doxygen 1.3.3