9 releases (5 breaking)
0.6.0 | Nov 7, 2021 |
---|---|
0.5.0 | Dec 3, 2020 |
0.4.0 | Jul 13, 2020 |
0.3.0 | Feb 29, 2020 |
0.1.0 | Mar 22, 2018 |
#431 in Network programming
492,677 downloads per month
Used in 388 crates
(26 directly)
170KB
3K
SLoC
no-std-net
Rust's std::net except without the std.
lib.rs
:
Networking primitives for TCP/UDP communication.
This module provides networking functionality for the Transmission Control and User Datagram Protocols, as well as types for IP and socket addresses. It has been ported from std::net to remove the dependency on std.
This crate is a WIP, issues, feedback and PRs are welcome as long as they follow the theme of "std::net" clone.
Organization
IpAddr
represents IP addresses of either IPv4 or IPv6;Ipv4Addr
andIpv6Addr
are respectively IPv4 and IPv6 addressesTcpListener
andTcpStream
provide functionality for communication over TCPUdpSocket
provides functionality for communication over UDPSocketAddr
represents socket addresses of either IPv4 or IPv6;SocketAddrV4
andSocketAddrV6
are respectively IPv4 and IPv6 socket addressesToSocketAddrs
is a trait that used for generic address resolution when interacting with networking objects likeTcpListener
,TcpStream
orUdpSocket
- Other types are return or parameter types for various methods in this module
Dependencies
~170KB