Simple socket server and client