Update the socket programming