Added reuse of socket for client
Added reuse of socket for server