Crates.io | socket |
lib.rs | socket |
version | 0.0.7 |
source | src |
created_at | 2015-02-24 23:09:58.217002 |
updated_at | 2015-12-15 00:03:39.936387 |
description | Low-level networking interface for Rust |
homepage | https://github.com/jstasiak/rust-socket |
repository | https://github.com/jstasiak/rust-socket |
max_upload_size | |
id | 1463 |
size | 13,259 |
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/
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();
Experimental
MIT