Refactoring. UDP Socket.