thin wrapped around file descriptor and system calls todo: ssl More...
#include <sock.h>
Public Member Functions | |
| Socket (int sock, const SockAddr &farEnd) | |
| Socket (double so_timeout=0, int logLevel=0) | |
| bool | connect (SockAddr &farEnd) |
| void | close () |
| void | send (const char *data, int len, const char *context) |
| void | send (const vector< pair< char *, int > > &data, const char *context) |
| void | recv (char *data, int len) |
| int | unsafe_recv (char *buf, int max) |
| int | getLogLevel () const |
| void | setLogLevel (int ll) |
| SockAddr | remoteAddr () const |
| string | remoteString () const |
| unsigned | remotePort () const |
| void | clearCounters () |
| long long | getBytesIn () const |
| long long | getBytesOut () const |
Protected Attributes | |
| int | _logLevel |
thin wrapped around file descriptor and system calls todo: ssl
1.6.3