mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
f1e1b786c6
MozReview-Commit-ID: 6BC0fu1rrEE --HG-- extra : rebase_source : b986541c97eee9eaa70bbc54ccfcd63b2d3fa006 |
||
---|---|---|
.. | ||
src | ||
tests | ||
.cargo-checksum.json | ||
.cargo-ok | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
mio-uds
A library for integrating Unix Domain Sockets with mio. Based on the standard library's support for Unix sockets, except all of the abstractions and types are nonblocking to conform with the expectations of mio.
# Cargo.toml
[dependencies]
mio-uds = "0.6"
mio = "0.6"
Usage
The three exported types at the top level, UnixStream
, UnixListener
, and
UnixDatagram
, are thin wrappers around the libstd counterparts. They can be
used in similar fashions to mio's TCP and UDP types in terms of registration and
API.
License
mio-uds
is primarily distributed under the terms of both the MIT license and
the Apache License (Version 2.0), with portions covered by various BSD-like
licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.