First draft of client & server sockets (high level API)