Diff
Not logged in

Differences From Artifact [1f639087df]:

To Artifact [cd4faba829]:


11
12
13
14
15
16
17
18
19
20
21
22

23
24
25
26
27
28
29
// Unless required by applicable law or agreed to in writing, the SAFE Network Software distributed
// under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.
//
// Please review the Licences for the specific language governing permissions and limitations
// relating to use of the SAFE Network Software.

use common::{Core, CoreTimer, Socket, SocketAddr, State};
use mio::{Poll, PollOpt, Ready, Token};
use mio::timer::Timeout;
use std::any::Any;
use std::cell::RefCell;

use std::rc::Rc;
use std::time::Duration;

const CHECK_REACHABILITY_TIMEOUT_SEC: u64 = 3;

pub type Finish<T> = Box<FnMut(&mut Core, &Poll, Token, Result<T, ()>)>;








|




>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Unless required by applicable law or agreed to in writing, the SAFE Network Software distributed
// under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.
//
// Please review the Licences for the specific language governing permissions and limitations
// relating to use of the SAFE Network Software.

use common::{Core, CoreTimer, Socket, State};
use mio::{Poll, PollOpt, Ready, Token};
use mio::timer::Timeout;
use std::any::Any;
use std::cell::RefCell;
use std::net::SocketAddr;
use std::rc::Rc;
use std::time::Duration;

const CHECK_REACHABILITY_TIMEOUT_SEC: u64 = 3;

pub type Finish<T> = Box<FnMut(&mut Core, &Poll, Token, Result<T, ()>)>;