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

#251 in #sockets

Download history 94/week @ 2024-07-20 235/week @ 2024-07-27 514/week @ 2024-08-03 713/week @ 2024-08-10 829/week @ 2024-08-17 386/week @ 2024-08-24 614/week @ 2024-08-31 774/week @ 2024-09-07 926/week @ 2024-09-14 1063/week @ 2024-09-21 704/week @ 2024-09-28 1352/week @ 2024-10-05 357/week @ 2024-10-12 511/week @ 2024-10-19 568/week @ 2024-10-26 396/week @ 2024-11-02

2,024 downloads per month
Used in 3 crates

MIT license

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