implement basic UDP connection code
move common network types to own module
use common network types in tests