#include <SysCSStream.hpp>
Public Member Functions | |
SysClientStream () | |
SysClientStream (const char *name) | |
SysClientStream (const char *host, int port) | |
~SysClientStream () | |
CSErrorCodeT | getError (void) |
bool | open (const char *) |
bool | open (const char *, int) |
bool | close () |
void | setDomain (int newdomain) |
void | setType (int newtype) |
void | setProtocol (int newprotocol) |
bool | isClean () |
SysClientStream () | |
SysClientStream (const char *name) | |
SysClientStream (const char *host, int port) | |
~SysClientStream () | |
bool | open (const char *) |
bool | open (const char *, int) |
bool | close () |
void | setDomain (int newdomain) |
void | setType (int newtype) |
void | setProtocol (int newprotocol) |
bool | isClean () |
Public Member Functions inherited from SysSocketConnection | |
SysSocketConnection () | |
SysSocketConnection (int sock) | |
~SysSocketConnection () | |
CSErrorCodeT | getError (void) |
bool | read (void *buf, size_t bufsize, size_t *bytesread) |
bool | write (void *buf, size_t bufsize, size_t *byteswritten) |
bool | write (void *buf, size_t bufsize, void *buf2, size_t buf2size, size_t *byteswritten) |
SysSocketConnection () | |
SysSocketConnection (SOCKET sock) | |
~SysSocketConnection () | |
CSErrorCodeT | getError (void) |
bool | read (void *buf, size_t bufsize, size_t *bytesread) |
bool | write (void *buf, size_t bufsize, size_t *byteswritten) |
bool | write (void *buf, size_t bufsize, void *buf2, size_t buf2size, size_t *byteswritten) |
Protected Attributes | |
int | domain |
int | type |
int | protocol |
Protected Attributes inherited from SysSocketConnection | |
int | c |
CSErrorCodeT | errcode |
char * | messageBuffer |
SOCKET | c |
Additional Inherited Members | |
Protected Types inherited from SysSocketConnection | |
enum | { MAX_CACHED_BUFFER = 4096 } |
enum | { MAX_CACHED_BUFFER = 4096 } |
Protected Member Functions inherited from SysSocketConnection | |
char * | getMessageBuffer (size_t size) |
void | returnMessageBuffer (void *) |
char * | getMessageBuffer (size_t size) |
void | returnMessageBuffer (void *) |
Definition at line 89 of file unix/SysCSStream.hpp.
SysClientStream::SysClientStream | ( | ) |
Standard constructor.
Definition at line 238 of file unix/SysCSStream.cpp.
SysClientStream::SysClientStream | ( | const char * | name | ) |
SysClientStream::SysClientStream | ( | const char * | host, |
int | port | ||
) |
SysClientStream::~SysClientStream | ( | ) |
Standard destructor.
Definition at line 278 of file unix/SysCSStream.cpp.
References SysSocketConnection::c, and close().
SysClientStream::SysClientStream | ( | ) |
SysClientStream::SysClientStream | ( | const char * | name | ) |
SysClientStream::SysClientStream | ( | const char * | host, |
int | port | ||
) |
SysClientStream::~SysClientStream | ( | ) |
bool SysClientStream::close | ( | ) |
Close the connection to the host.
Definition at line 379 of file unix/SysCSStream.cpp.
References SysSocketConnection::c, CSERROR_OK, CSERROR_UNKNOWN, and SysSocketConnection::errcode.
Referenced by open(), and ~SysClientStream().
bool SysClientStream::close | ( | ) |
|
inline |
Definition at line 96 of file unix/SysCSStream.hpp.
References SysSocketConnection::errcode.
|
inline |
Definition at line 117 of file unix/SysCSStream.hpp.
References CSERROR_OK, and SysSocketConnection::errcode.
Referenced by LocalAPIManager::returnConnection().
|
inline |
Definition at line 109 of file windows/SysCSStream.hpp.
References CSERROR_OK, and SysSocketConnection::errcode.
bool SysClientStream::open | ( | const char * | name | ) |
Open a connection to a host/port.
name | Hostname and port in the form "hostname:port". |
Definition at line 294 of file unix/SysCSStream.cpp.
References CSERROR_HOSTNAME_PORT, and SysSocketConnection::errcode.
Referenced by LocalAPIManager::getConnection(), and SysClientStream().
bool SysClientStream::open | ( | const char * | ) |
bool SysClientStream::open | ( | const char * | host, |
int | port | ||
) |
Open a connection to a host/port.
host | The target host name. |
port | The connection port number. |
Definition at line 331 of file unix/SysCSStream.cpp.
References SysSocketConnection::c, close(), CSERROR_HOSTNAME_PORT, CSERROR_INTERNAL, CSERROR_OK, CSERROR_OPEN_FAILED, domain, SysSocketConnection::errcode, protocol, and type.
bool SysClientStream::open | ( | const char * | , |
int | |||
) |
|
inline |
Definition at line 105 of file unix/SysCSStream.hpp.
References domain.
|
inline |
Definition at line 97 of file windows/SysCSStream.hpp.
References domain.
|
inline |
Definition at line 113 of file unix/SysCSStream.hpp.
References protocol.
|
inline |
Definition at line 105 of file windows/SysCSStream.hpp.
References protocol.
|
inline |
Definition at line 109 of file unix/SysCSStream.hpp.
References type.
|
inline |
Definition at line 101 of file windows/SysCSStream.hpp.
References type.
|
protected |
Definition at line 123 of file unix/SysCSStream.hpp.
Referenced by open(), setDomain(), and SysClientStream().
|
protected |
Definition at line 125 of file unix/SysCSStream.hpp.
Referenced by open(), setProtocol(), and SysClientStream().
|
protected |
Definition at line 124 of file unix/SysCSStream.hpp.
Referenced by open(), setType(), and SysClientStream().