File tree 3 files changed +0
-17
lines changed 3 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,4 @@ void client::Send(const std::vector<std::string>& message)
22
22
boost::asio::write (socket_, boost::asio::buffer (request, request_length));
23
23
24
24
std::cout << " \t CLIENT MSG SEND TO " << ep.address () << " :" << ep.port () << " \t DATA: " << request << std::endl;
25
- }
26
-
27
- void client::GetReply ()
28
- {
29
- char reply[max_length];
30
-
31
- size_t reply_length = boost::asio::read (
32
- socket_,
33
- boost::asio::buffer (reply, request_length)
34
- );
35
-
36
- memset (request, 0 , sizeof request);
37
- std::cout << " \t SERVER REPLY FROM " << ep.address () << " :" << ep.port () << " \t DATA: " ;
38
- std::cout.write (reply, reply_length);
39
- std::cout << std::endl << std::endl;
40
25
}
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class client
16
16
17
17
void ConnectToServer (const std::string& host, const std::string& port);
18
18
void Send (const std::vector<std::string>& message);
19
- void GetReply ();
20
19
21
20
~client () noexcept
22
21
{
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ int main(void)
75
75
{
76
76
if (connected) {
77
77
client.Send (msg);
78
- client.GetReply ();
79
78
}
80
79
else {
81
80
out << " \t You need to connect to the server! Use: \" connect <string>\" " << " \n " ;
You can’t perform that action at this time.
0 commit comments