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

#3 in #low-level-networking

Download history 1939/week @ 2025-10-20 1154/week @ 2025-10-27 1593/week @ 2025-11-03 786/week @ 2025-11-10 2105/week @ 2025-11-17 1027/week @ 2025-11-24 2624/week @ 2025-12-01 2517/week @ 2025-12-08 723/week @ 2025-12-15 582/week @ 2025-12-22 189/week @ 2025-12-29 2389/week @ 2026-01-05 2089/week @ 2026-01-12 2331/week @ 2026-01-19 3601/week @ 2026-01-26 3094/week @ 2026-02-02

11,115 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

~155–265KB