added datagram and first impl. of server-side.