BoundSocket refactoring, now we use Event class only for UDP sockets