Creates a socket.
fn socket(domain: i32, ty: i32, proto: i32) -> i32
| Name | Description |
|---|---|
| domain | The domain of the socket. |
| ty | The type of the socket. |
| proto | The protocol of the socket. |
Returns the socket or an error value.
Unless lrs was compiled with the no-auto-cloexec flag, this function automatically adds the SOCK_CLOEXEC flag.