implementing udp protocol 2/5

Implementing Clientbase.