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