Definition at line 41 of file WindowsSocket.cpp.
WindowsSocketImpl::WindowsSocketImpl |
( |
| ) |
|
|
inline |
void WindowsSocketImpl::connect_to_server |
( |
struct addrinfo * |
servers | ) |
|
|
inlineprotected |
Helper to connect the socket to a given address.
- Parameters
-
server | address of the server to connect to, linked list |
Definition at line 159 of file WindowsSocket.cpp.
struct addrinfo* WindowsSocketImpl::get_server_addr |
( |
const string & |
hostname | ) |
|
|
inlineprotected |
Helper to get the addrinfo for the server based on a string hostname. NB: you can just pass in a const char* and C++ will automatically create the string instance for you.
- Parameters
-
hostname | the hostname to connect to. Understands "host:port" |
- Returns
- pointer to addrinfo from getaddrinfo or NULL on error
Definition at line 129 of file WindowsSocket.cpp.
void WindowsSocketImpl::init |
( |
char * |
server_hostname | ) |
|
|
inline |
int WindowsSocketImpl::read |
( |
| ) |
|
|
inline |
unsigned long WindowsSocketImpl::time |
( |
| ) |
|
|
inline |
void WindowsSocketImpl::write |
( |
const unsigned char * |
data, |
|
|
int |
length |
|
) |
| |
|
inline |
SOCKET WindowsSocketImpl::mySocket |
|
private |
The documentation for this class was generated from the following file: