TCP Client-Server “bad address” error (in C)
问题 Although it seems to be correctly implemented, it keeps on returning me ERROR when I establish a connection using the loopback address (127.0.0.1). In addition to a simple TCP Client/Server connection, I have added an additional case: If the client tries to send data but finds the connection closed , it is closed too. I perform it by checking if received data is equal to 0 (recv) . Given error : CLIENT: Welcome to the Client mode Please, enter the Server's IP Address and Port (eg. 192.128.192