#include <SysCSStream.hpp>
Public Member Functions | |
| SysServerConnection (SysServerStream *s, int socket) | |
| ~SysServerConnection () | |
| bool | isLocalConnection () |
| bool | disconnect (void) |
| SysServerConnection (SysServerStream *s, SOCKET socket) | |
| ~SysServerConnection () | |
| bool | isLocalConnection () |
| bool | disconnect (void) |
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 Member Functions | |
| char * | getMessageBuffer () |
| void | returnMessageBuffer (void *) |
Protected Member Functions inherited from SysSocketConnection | |
| char * | getMessageBuffer (size_t size) |
| void | returnMessageBuffer (void *) |
| char * | getMessageBuffer (size_t size) |
| void | returnMessageBuffer (void *) |
Protected Attributes | |
| SysServerStream * | server |
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 } |
Class to manage a single instance of a server connection. These are created any time a server stream object accepts a connection.
Definition at line 135 of file unix/SysCSStream.hpp.
| SysServerConnection::SysServerConnection | ( | SysServerStream * | s, |
| int | socket | ||
| ) |
Server connection constructor.
| s | The parent server connection. |
| socket | The socket for the connection. |
Definition at line 592 of file unix/SysCSStream.cpp.
References server.
| SysServerConnection::~SysServerConnection | ( | ) |
| SysServerConnection::SysServerConnection | ( | SysServerStream * | s, |
| SOCKET | socket | ||
| ) |
Server connection constructor.
| s | The parent server connection. |
| socket | The socket for the connection. |
Definition at line 591 of file windows/SysCSStream.cpp.
References server.
| SysServerConnection::~SysServerConnection | ( | ) |
| bool SysServerConnection::disconnect | ( | void | ) |
Close the connection to the host.
Close the server connection.
Definition at line 641 of file unix/SysCSStream.cpp.
References SysSocketConnection::c, CSERROR_INTERNAL, CSERROR_OK, and SysSocketConnection::errcode.
Referenced by APIServer::processMessages(), and ~SysServerConnection().
| bool SysServerConnection::disconnect | ( | void | ) |
|
protected |
| bool SysServerConnection::isLocalConnection | ( | void | ) |
Is the connection with the localhost?
Definition at line 612 of file unix/SysCSStream.cpp.
References SysSocketConnection::c.
| bool SysServerConnection::isLocalConnection | ( | ) |
|
protected |
|
protected |
Definition at line 145 of file unix/SysCSStream.hpp.
Referenced by SysServerConnection().