Logo Search packages:      
Sourcecode: libnl version File versions  Download package

int nl_recvmsgs ( struct nl_handle *  handle,
struct nl_cb *  cb 
)

Receive a set of messages from a netlink socket.

  • handle netlink handle
  • cb set of callbacks to control behaviour.
Repeatedly calls nl_recv() or the respective replacement if provided by the application (see nl_cb_overwrite_recv()) and parses the received data as netlink messages. Stops reading if one of the callbacks returns NL_STOP or nl_recv returns either 0 or a negative error code.

A non-blocking sockets causes the function to return immediately if no data is available.

Returns:
0 on success or a negative error code from nl_recv().

Definition at line 767 of file nl.c.

Referenced by __cache_pickup(), nl_recvmsgs_default(), and nl_wait_for_ack().

{
      if (cb->cb_recvmsgs_ow)
            return cb->cb_recvmsgs_ow(handle, cb);
      else
            return recvmsgs(handle, cb);
}


Generated by  Doxygen 1.6.0   Back to index