49 #include <visp/vpServer.h>
61 serv.checkForConnections();
63 if(serv.getNumberOfClients() > 0)
65 if(serv.receive(&val) !=
sizeof(int))
66 std::cout <<
"Error while receiving" << std::endl;
68 std::cout <<
"Received : " << val << std::endl;
71 if(serv.send(&val) !=
sizeof(int))
72 std::cout <<
"Error while sending" << std::endl;
74 std::cout <<
"Sending : " << val << std::endl;
This class represents a Transmission Control Protocol (TCP) server.