test programing with sockets