initializer of UDP-Socket generalized