11 #include <sys/socket.h>
12 #include <arpa/inet.h>
15 #include "../Utils/Hex.h"
50 bool Send(std::string data);
std::string address
Address of the server.
Definition: TcpClient.h:75
bool Send(std::string data)
Sends an XML message to the server.
Definition: TcpClient.cpp:77
void Close()
Closes the socket with the server.
Definition: TcpClient.cpp:12
int sock
Socket connection with the server.
Definition: TcpClient.h:74
Socket connection with server.
Definition: TcpClient.h:25
long RequestHandle
Current request identifier.
Definition: TcpClient.h:71
std::string Receive(int size)
Returns data received from the server.
Definition: TcpClient.cpp:112
bool Connect(std::string address, int port)
Creates a socket connection with the server.
Definition: TcpClient.cpp:22
bool SearchForCallBacks(int timeout)
Wait (timeout) for callbacks from the server.
Definition: TcpClient.cpp:136
struct sockaddr_in server
Server/socket information.
Definition: TcpClient.h:77
int port
XML-RPC port of the server.
Definition: TcpClient.h:76
TcpClient()
Initializes variables.
Definition: TcpClient.cpp:3