linux_rust_bindings/socket/
socket_x86.rs1pub type __kernel_sa_family_t = ::core::ffi::c_ushort;
4pub const socket_state_SS_FREE: socket_state = 0;
5pub const socket_state_SS_UNCONNECTED: socket_state = 1;
6pub const socket_state_SS_CONNECTING: socket_state = 2;
7pub const socket_state_SS_CONNECTED: socket_state = 3;
8pub const socket_state_SS_DISCONNECTING: socket_state = 4;
9pub type socket_state = ::core::ffi::c_uint;
10#[repr(C)]
11#[derive(Debug, Copy, Clone)]
12pub struct sockaddr_un {
13 pub sun_family: __kernel_sa_family_t,
14 pub sun_path: [::core::ffi::c_char; 108usize],
15}
16pub type __u16 = ::core::ffi::c_ushort;
17pub type __u32 = ::core::ffi::c_uint;
18pub type __be16 = __u16;
19pub type __be32 = __u32;
20#[repr(C)]
21#[derive(Debug, Copy, Clone)]
22pub struct in_addr {
23 pub s_addr: __be32,
24}
25#[repr(C)]
26#[derive(Debug, Copy, Clone)]
27pub struct sockaddr_in {
28 pub sin_family: __kernel_sa_family_t,
29 pub sin_port: __be16,
30 pub sin_addr: in_addr,
31 pub __pad: [::core::ffi::c_uchar; 8usize],
32}