init
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
module netio
|
||||
|
||||
import sync
|
||||
|
||||
fn init() {
|
||||
netio_protoent_mutex = sync.new_mutex()
|
||||
}
|
||||
|
||||
fn cleanup() {
|
||||
netio_protoent_mutex.destroy()
|
||||
unsafe { free(netio_protoent_mutex) }
|
||||
}
|
||||
|
||||
// The socket address family type.
|
||||
// See [address_families(7)](https://www.man7.org/linux/man-pages/man7/address_families.7.html).
|
||||
pub type AddrFamily = u16
|
||||
|
||||
// The socket type.
|
||||
pub type SocketType = int
|
||||
|
||||
// The socket level type.
|
||||
pub type SocketLevel = int
|
||||
|
||||
// The socket option type.
|
||||
pub type SocketOption = int
|
||||
Reference in New Issue
Block a user