(bind-func nnsock_set_timeout "sets both send and recieve timeouts" (lambda (sock:i32 timeout_ms:i32) (nnsock_set_send_timeout sock timeout_ms) (nnsock_set_recv_timeout sock timeout_ms)))