25 #ifndef SOCKETCLIENT_H_
26 #define SOCKETCLIENT_H_
28 #include <sys/socket.h>
29 #include <sys/types.h>
30 #include <netinet/in.h>
44 struct sockaddr_in serverAddress;
45 struct hostent *server;
46 std::string serverName;
54 virtual int send(std::string message);
55 virtual std::string
receive(
int size);
virtual int send(std::string message)
Definition: SocketClient.cpp:66
virtual std::string receive(int size)
Definition: SocketClient.cpp:77
bool isClientConnected()
Definition: SocketClient.h:57
SocketClient(std::string serverName, int portNumber)
Definition: SocketClient.cpp:33
virtual ~SocketClient()
Definition: SocketClient.cpp:111
virtual int connectToServer()
Definition: SocketClient.cpp:41
Definition: BusDevice.cpp:27
A class that encapsulates a socket client to be used for network communication.
Definition: SocketClient.h:40
virtual int disconnectFromServer()
Definition: SocketClient.cpp:105