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

Download history 86/week @ 2024-05-21 84/week @ 2024-05-28 126/week @ 2024-06-04 81/week @ 2024-06-11 47/week @ 2024-06-18 110/week @ 2024-06-25 32/week @ 2024-07-02 93/week @ 2024-07-09 104/week @ 2024-07-16 83/week @ 2024-07-23 261/week @ 2024-07-30 557/week @ 2024-08-06 768/week @ 2024-08-13 794/week @ 2024-08-20 299/week @ 2024-08-27 741/week @ 2024-09-03

2,669 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