25 #ifndef SOCKETSERVER_H_
26 #define SOCKETSERVER_H_
28 #include <sys/socket.h>
29 #include <sys/types.h>
30 #include <netinet/in.h>
42 int socketfd, clientSocketfd;
43 struct sockaddr_in serverAddress;
44 struct sockaddr_in clientAddress;
50 virtual int send(std::string message);
51 virtual std::string
receive(
int size);
virtual std::string receive(int size)
Definition: SocketServer.cpp:78
A class that encapsulates a server socket for network communication.
Definition: SocketServer.h:39
virtual int send(std::string message)
Definition: SocketServer.cpp:67
SocketServer(int portNumber)
Definition: SocketServer.cpp:34
Definition: BusDevice.cpp:27
virtual int listen()
Definition: SocketServer.cpp:41
virtual ~SocketServer()
Definition: SocketServer.cpp:87