|
|
|
@ -3,9 +3,9 @@
|
|
|
|
|
use std::io;
|
|
|
|
|
use std::net::SocketAddr;
|
|
|
|
|
|
|
|
|
|
use mio::{Interest, Registry, Token};
|
|
|
|
|
use mio::event::Source;
|
|
|
|
|
use mio::net::TcpListener;
|
|
|
|
|
use mio::{Interest, Registry, Token};
|
|
|
|
|
|
|
|
|
|
use crate::client::Client;
|
|
|
|
|
use crate::result::*;
|
|
|
|
@ -60,7 +60,7 @@ impl Source for Server {
|
|
|
|
|
&mut self,
|
|
|
|
|
registry: &Registry,
|
|
|
|
|
token: Token,
|
|
|
|
|
interest: Interest
|
|
|
|
|
interest: Interest,
|
|
|
|
|
) -> io::Result<()> {
|
|
|
|
|
self.socket.register(registry, token, interest)
|
|
|
|
|
}
|
|
|
|
|