Creates a new socket.
impl Socket {
fn new(domain: Domain, kind: Kind, protocol: i32, flags: SockFlags) -> Result<Socket, Errno>
}| Name | Description |
|---|---|
| domain | |
| kind | |
| protocol | |
| flags | |
This is the most general constructor. There are simpler, more specialized constructors for the common cases of Unix, Ipv4, and Ipv6 sockets.