New type Reactor implements the reactor pattern, mixing the handling of sockets and channels.