Create Client.
48 {
51
53
54 for (int i = 0; i < 100; i++)
55 {
56 clientSocket.
Send(
"Hello client!");
58
59 std::string response = clientSocket.
Receive();
61 }
62 }
static std::atomic_int m_NSends
static std::atomic_int m_NReceives
void Connect(InetAddress *connectAddress) const
Connect to socket.
void Send(const std::string &data) const
Send data to server.
void Create()
Create Non Blocking Socket.
std::string Receive() const
Receive data from server.
This class is Wrapper of socket.