UDP connection on 1socket

The code is done for UDP connection on just one socket