Add example (connection between the client and server using TCP)

+ how to initialize an UDP socket (commented)