pub unsafe fn sock_bind(fd: Fd, addr: *const AddrPort) -> Result<(), Errno>
Expand description

Bind a socket Note: This is similar to bind in POSIX using PF_INET

Parameters

  • fd - File descriptor of the socket to be bind
  • addr - Address to bind the socket to