IBM SYSTEMG G RUNTIME & NATIVE STORE
0.5
IBM Native Graph Computing and Storage System based on IBM Parallel Programming Library
|
socket_client class More...
#include <socket_client.hpp>
Public Member Functions | |
socket_client_type () | |
Initialize with default values. | |
socket_client_type (std::string h, int p) | |
Initialize with a server and port. | |
void | set_host (const std::string &h) |
set hostname of the server | |
void | set_port (int p) |
set port number | |
int | connect_server () |
build connection | |
int | send_msg (const std::string &s) |
send a buffer | |
int | recv_msg (std::string &s) |
recv a buffer | |
void | disconnect () |
disconnect from server | |
Protected Attributes | |
int | port |
size_t | packetsize |
size_t | maxresultmessagesize |
size_t | maxsocketsize |
struct sockaddr_in | client |
std::string | hostname |
int | sock_desc |
bool | is_disconnected |
socket_client class