#include <SockServ.hh>
Public Member Functions | |
| clSockServ () | |
| clSockServ (unsigned short) | |
| clSockServ (const char *) | |
| ~clSockServ () | |
| bool | Bind (unsigned short) |
| Bind to TCP port. | |
| bool | Bind (const char *, unsigned short) |
| Bind to specific address and port. | |
| bool | Bind (const char *) |
| Bind to UNIX domain socket. | |
| int | WaitForConnect () |
| Wait for connect. | |
| int | WaitForConnect (int) |
| Wait for connect. | |
| void | Close () |
| Close listening socket. | |
| int | GetErrno () |
| Get errno. | |
Private Attributes | |
| int | iErrno |
| int | iListenH |
| bool | bLocal |
| char | cpLocalSockName [UNIX_PATH_MAX+1] |
Definition at line 44 of file SockServ.hh.
|
|
Definition at line 41 of file SockServ.cc. |
|
|
Definition at line 48 of file SockServ.cc. |
|
|
Definition at line 55 of file SockServ.cc. |
|
|
Definition at line 195 of file SockServ.cc. References Close(). |
|
|
Bind to TCP port.
Definition at line 63 of file SockServ.cc. References bLocal, iErrno, iListenH, and SOCKSERV_LISTENQUEUE_LEN. Referenced by Bind(), clSockServ(), clXMMSOut::Init(), clStreamDist::Main(), clSoundSrvA::Main(), clSoundSrv2::Main(), clLocate::Main(), clComediSrv::Main(), clBeamSrv2Master::Main(), clBeamSrvMaster::Main(), clFileSrv::ServerThread(), and clSoundProxy::WaitConnectThread(). |
|
||||||||||||
|
Bind to specific address and port.
Definition at line 99 of file SockServ.cc. References bLocal, iErrno, iListenH, and SOCKSERV_LISTENQUEUE_LEN. |
|
|
Bind to UNIX domain socket.
Definition at line 142 of file SockServ.cc. References Bind(), bLocal, cpLocalSockName, GLOBAL_SOCKET_PATH, iErrno, iListenH, SOCKSERV_LISTENQUEUE_LEN, and UNIX_PATH_MAX. |
|
|
Wait for connect.
Definition at line 201 of file SockServ.cc. References bLocal, iErrno, and iListenH. Referenced by clStreamDist::Main(), clSoundSrvA::Main(), clSoundSrv2::Main(), clLocate::Main(), clComediSrv::Main(), clXMMSOut::MainThread(), clFileSrv::ServerThread(), clBeamSrv2Master::ServerThread(), clBeamSrvMaster::ServerThread(), clUIServer::Wait(), and clSoundProxy::WaitConnectThread(). |
|
|
Wait for connect.
Definition at line 229 of file SockServ.cc. |
|
|
Close listening socket.
Definition at line 278 of file SockServ.cc. References bLocal, cpLocalSockName, and iListenH. Referenced by clXMMSOut::OnButtonClick(), and ~clSockServ(). |
|
|
Get errno.
Definition at line 103 of file SockServ.hh. References iErrno. Referenced by clUIServer::clUIServer(), clStreamDist::Main(), clBeamSrv2Master::Main(), clBeamSrvMaster::Main(), and clUIServer::Wait(). |
|
|
Definition at line 46 of file SockServ.hh. Referenced by Bind(), clSockServ(), GetErrno(), and WaitForConnect(). |
|
|
Definition at line 47 of file SockServ.hh. Referenced by Bind(), Close(), clSockServ(), and WaitForConnect(). |
|
|
Definition at line 48 of file SockServ.hh. Referenced by Bind(), Close(), and WaitForConnect(). |
|
|
Definition at line 49 of file SockServ.hh. |
1.3.3