c++ - Sockets - send and receive -
I am currently writing a chat server in C ++ when a user joins it, then I open a socket And I make one to send two more data, to get another data.
Now my question:
I have to check that what is the second thread is currently using the socket, or what / recv function will wait until the socket is ready?
is sending and getting it together from the TCP socket should be perfectly fine. (Except for any possible OS bug)
Comments
Post a Comment