Merged udp and tcp functionality

Must make functions for checking wheter two peers are already
connected, or if broadcast-ping is from the same computer.