#include <SysCSStream.hpp>
Public Member Functions | |
SysServerStream () | |
SysServerStream (const char *name) | |
SysServerStream (int port) | |
~SysServerStream () | |
CSErrorCodeT | getError (void) |
bool | make (const char *) |
bool | make (int) |
SysServerConnection * | connect () |
bool | close () |
void | setDomain (int newdomain) |
void | setType (int newtype) |
void | setProtocol (int newprotocol) |
void | setBackLog (int newbacklog) |
bool | isClean () |
SysServerStream () | |
SysServerStream (const char *name) | |
SysServerStream (int port) | |
~SysServerStream () | |
CSErrorCodeT | getError (void) |
bool | make (const char *) |
bool | make (int) |
SysServerConnection * | connect () |
bool | close () |
void | setDomain (int newdomain) |
void | setType (int newtype) |
void | setProtocol (int newprotocol) |
void | setBackLog (int newbacklog) |
bool | isClean () |
Protected Attributes | |
CSErrorCodeT | errcode |
int | s |
int | domain |
int | type |
int | protocol |
int | backlog |
SOCKET | s |
Definition at line 149 of file unix/SysCSStream.hpp.
SysServerStream::SysServerStream | ( | ) |
Standard constructor.
Definition at line 399 of file unix/SysCSStream.cpp.
References backlog, CSERROR_OK, domain, errcode, protocol, s, and type.
SysServerStream::SysServerStream | ( | const char * | name | ) |
Alternate constructor.
name | Hostname and port in the form "hostname:port". |
Definition at line 415 of file unix/SysCSStream.cpp.
References backlog, CSERROR_OK, domain, errcode, make(), protocol, s, and type.
SysServerStream::SysServerStream | ( | int | port | ) |
Alternate constructor.
port | Port number to listen on. |
Definition at line 432 of file unix/SysCSStream.cpp.
References backlog, CSERROR_OK, domain, errcode, make(), protocol, s, and type.
SysServerStream::~SysServerStream | ( | ) |
SysServerStream::SysServerStream | ( | ) |
SysServerStream::SysServerStream | ( | const char * | name | ) |
SysServerStream::SysServerStream | ( | int | port | ) |
SysServerStream::~SysServerStream | ( | ) |
bool SysServerStream::close | ( | ) |
Close the server connection.
Definition at line 569 of file unix/SysCSStream.cpp.
References CSERROR_INTERNAL, CSERROR_OK, errcode, and s.
Referenced by APIServer::terminateServer(), and ~SysServerStream().
bool SysServerStream::close | ( | ) |
SysServerConnection * SysServerStream::connect | ( | void | ) |
Accept a connection from a client.
Definition at line 542 of file unix/SysCSStream.cpp.
References CSERROR_CONNX_FAILED, CSERROR_INTERNAL, CSERROR_OK, errcode, and s.
Referenced by APIServer::listenForConnections().
SysServerConnection* SysServerStream::connect | ( | ) |
|
inline |
Definition at line 164 of file unix/SysCSStream.hpp.
References errcode.
|
inline |
Definition at line 159 of file windows/SysCSStream.hpp.
References errcode.
|
inline |
Definition at line 190 of file unix/SysCSStream.hpp.
References CSERROR_OK, and errcode.
|
inline |
Definition at line 185 of file windows/SysCSStream.hpp.
References CSERROR_OK, and errcode.
bool SysServerStream::make | ( | const char * | name | ) |
Make a sever connection.
name | Hostname and port in the form "hostname:port". |
Definition at line 461 of file unix/SysCSStream.cpp.
References CSERROR_HOSTNAME_PORT, and errcode.
Referenced by APIServer::initServer(), and SysServerStream().
bool SysServerStream::make | ( | const char * | ) |
bool SysServerStream::make | ( | int | port | ) |
Make a server connection.
port | Port to use for the connection. |
Definition at line 496 of file unix/SysCSStream.cpp.
References backlog, CSERROR_CONNX_EXISTS, CSERROR_INTERNAL, CSERROR_OK, CSERROR_UNKNOWN, domain, errcode, protocol, s, and type.
bool SysServerStream::make | ( | int | ) |
|
inline |
Definition at line 186 of file unix/SysCSStream.hpp.
References backlog.
|
inline |
Definition at line 181 of file windows/SysCSStream.hpp.
References backlog.
|
inline |
Definition at line 174 of file unix/SysCSStream.hpp.
References domain.
|
inline |
Definition at line 169 of file windows/SysCSStream.hpp.
References domain.
|
inline |
Definition at line 182 of file unix/SysCSStream.hpp.
References protocol.
|
inline |
Definition at line 177 of file windows/SysCSStream.hpp.
References protocol.
|
inline |
Definition at line 178 of file unix/SysCSStream.hpp.
References type.
|
inline |
Definition at line 173 of file windows/SysCSStream.hpp.
References type.
|
protected |
Definition at line 157 of file unix/SysCSStream.hpp.
Referenced by make(), setBackLog(), and SysServerStream().
|
protected |
Definition at line 154 of file unix/SysCSStream.hpp.
Referenced by make(), setDomain(), and SysServerStream().
|
protected |
Definition at line 152 of file unix/SysCSStream.hpp.
Referenced by close(), connect(), getError(), isClean(), make(), and SysServerStream().
|
protected |
Definition at line 156 of file unix/SysCSStream.hpp.
Referenced by make(), setProtocol(), and SysServerStream().
|
protected |
Definition at line 153 of file unix/SysCSStream.hpp.
Referenced by close(), connect(), make(), and SysServerStream().
|
protected |
Definition at line 148 of file windows/SysCSStream.hpp.
|
protected |
Definition at line 155 of file unix/SysCSStream.hpp.
Referenced by make(), setType(), and SysServerStream().