Switches the protocol.
The protocol is deallocated by the event loop.
Application protocol.
Precondition: protocol !is null
See Implementation
Switches the protocol.
The protocol is deallocated by the event loop.