socket

Crates.iosocket
lib.rssocket
version0.0.7
sourcesrc
created_at2015-02-24 23:09:58.217002
updated_at2015-12-15 00:03:39.936387
descriptionLow-level networking interface for Rust
homepagehttps://github.com/jstasiak/rust-socket
repositoryhttps://github.com/jstasiak/rust-socket
max_upload_size
id1463
size13,259
Jakub Stasiak (jstasiak)

documentation

http://www.rustdox.com/github.com/jstasiak/rust-socket.git/socket/

README

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

Commit count: 39

cargo fmt