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

#189 in #sockets

Download history 538/week @ 2024-11-16 601/week @ 2024-11-23 374/week @ 2024-11-30 719/week @ 2024-12-07 444/week @ 2024-12-14 22/week @ 2024-12-21 219/week @ 2024-12-28 841/week @ 2025-01-04 652/week @ 2025-01-11 503/week @ 2025-01-18 458/week @ 2025-01-25 374/week @ 2025-02-01 431/week @ 2025-02-08 381/week @ 2025-02-15 367/week @ 2025-02-22 432/week @ 2025-03-01

1,648 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

~170–280KB