If I want to accept a connection I call accept, but how can I refuse a connection?
accept
In a working socket echo client I have this if statement. In the echo
It might be helpful
accept()