in reply to Recieving reply from a socket
Also... if you are “looking for a server,” first check to see if what you are looking for has not already been done by someone else. It probably has.
It's a natural tendency for computer programmers, when first presented with a new (sic...) problem, to immediately start spinning algorithms in their heads. Instead, you need to consciously develop the instinct that says to you, look first.