def send(fd, data, size, type=DEFAULT_SEND_TYPE, pid=DEFAULT_DEST_PID, group=DEFAULT_DEST_GROUP): """Return the byte number sent in fact. If failed, return a negative number.""" return _netlink.send(fd, data, size, pid, group, type)
def _nl_send(descriptor, msg): _netlink.send(descriptor.fileno(), msg)