14 unstable releases (4 breaking)

0.6.0 Aug 13, 2019
0.5.0 Aug 13, 2019
0.4.2 Feb 5, 2019
0.4.1 Jan 22, 2019
0.2.1 Aug 17, 2018

#411 in Network programming

Download history 74/week @ 2020-12-22 220/week @ 2020-12-29 165/week @ 2021-01-05 48/week @ 2021-01-12 15/week @ 2021-01-19 2/week @ 2021-02-02 31/week @ 2021-02-09 42/week @ 2021-02-16 2/week @ 2021-02-23 2/week @ 2021-03-02 1/week @ 2021-03-16 45/week @ 2021-03-23 42/week @ 2021-03-30 19/week @ 2021-04-06

365 downloads per month

BSD-2-Clause OR MIT

1MB
477 lines

docs.rs License BSD-2-Clause License MIT crates.io Download numbers Travis CI AppVeyor CI dependency status

About

This library provides a simple timeout-based API for IO-operations.

It provides the following features:

  • DNS-resolution (currently uses a background-thread)
  • TCP-accept
  • TCP-read/read-until/write
  • StdIOE-read/read-until/write
  • UDP-receive/send
  • A select-like API to wait on multiple source simultaneously

All functions are defined as traits, so that you can easily wrap your own IO-channels without breaking compatibility.

Note: We currently do not provide a function for timeout-based connect-calls; use std::net::TcpStream::connect_timeout for TCP-connections or build sth. using io::libselect (and feel free to commit if you do so 😇)

No runtime deps