hirun 0.1.16

A concurrent framework for asynchronous programming based on event-driven, non-blocking I/O mechanism
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg_attr(target_family = "unix", link(name = "c"))]
#[cfg_attr(target_family = "windows", link(name = "Ws2_32"))]
extern "C" {
    pub(crate) fn htons(val: u16) -> u16;
    pub(crate) fn ntohs(val: u16) -> u16;
    pub(crate) fn inet_pton(family: i32, name: *const u8, addr: *mut u8) -> i32;
    pub(crate) fn inet_ntop(family: i32, name: *const u8, addr: *mut u8, len: u32) -> *const u8;
}

// C11
#[allow(dead_code)]
#[link(name = "c")]
extern "C" {
    pub(crate) fn timespec_get(tm: *mut libc::timespec, base: i32) -> i32;
}