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
fn on_connect(
&mut self,
configurer: &mut Configurer<Self::Socket>,
socket: TcpStream
)
&mut self,
configurer: &mut Configurer<Self::Socket>,
socket: TcpStream
)
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.