7 releases
Uses old Rust 2015
0.0.7 | Jul 10, 2015 |
---|---|
0.0.6 | Apr 3, 2015 |
0.0.5 | Mar 28, 2015 |
0.0.1 | Feb 24, 2015 |
#261 in #sockets
2,669 downloads per month
Used in 3 crates
14KB
288 lines
socket
Low-level networking interface for Rust modeled after Python's socket module
Homepage and repository: https://github.com/jstasiak/rust-socket
Documentation: http://www.rustdox.com/github.com/jstasiak/rust-socket.git/socket/
Example
use socket::{AF_INET, SO_REUSEADDR, SOCK_DGRAM, Socket, SOL_SOCKET};
let socket = Socket::new(AF_INET, SOCK_DGRAM, 0).unwrap();
socket.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1).unwrap();
socket.bind("0.0.0.0:5353").unwrap();
Status
Experimental
License
MIT
Dependencies
~510KB
~10K SLoC