Add struct linger

This commit is contained in:
Jeremy Soller
2024-02-02 15:30:51 -07:00
parent 5d4f1a3105
commit 9b2b9e6c26
+7
View File
@@ -12,6 +12,13 @@ pub mod constants;
pub type sa_family_t = u16;
pub type socklen_t = u32;
#[repr(C)]
#[derive(Default)]
pub struct linger {
pub l_onoff: c_int,
pub l_linger: c_int,
}
#[repr(C)]
pub struct msghdr {
pub msg_name: *mut c_void,