Trait nexus::tcp::TcpProtocol [] [src]

pub trait TcpProtocol: Protocol {
    fn on_connect(
        &mut self,
        configurer: &mut Configurer<Self::Socket>,
        socket: TcpStream
    ); }

Trait used with a TCP reactor.

Required Methods

Event called when a new tcp connections is received.

The socket should be transformed into Self::Socket type and added to the reactor with the configurer.

Implementors