pub fn bind_socket(socket: &Socket, addr: &SocketAddr) -> Result<()>