Refactoring: use ValidTransportState in mainloop function.
Refactoring: use ValidTransportState in mainloop function.

qnikst/network-transport-zeromq,tweag/network-transport-zeromq,tweag/network-transport-zeromq,qnikst/network-transport-zeromq