Draft for issue #23

simple interface for TCP and UDP sockets and connections