socket9 0.1.0-alpha.1

Extended untilities for the networking/unix sockets and raw network sockets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::net::{TcpListener};

// adding a Socket9ExtSo to gain access to functions.
use socket9::Socket9ExtSo;

fn main()
{
    let tcp = TcpListener::bind("127.0.0.1:0").unwrap();

    // use from Socket9ExtSo
    let proto = tcp.get_so_protocol().unwrap();

    println!("proto: {:?}", proto);
}