Posting a message
send(sock_, bf, sizeof(bf), MSG_DONTROUTE); Reading message
len = recv(new_conn, (char *) b.c_str(), sizeof(b.c_str()), 0); Why does the server receive, instead of the message that I sent, some not clear characters, and even so many. How to fix?
sizeof(b.c_str())- is that how you calculate pointer size? - Pavel Mayorov