示例#1
0
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)
示例#2
0
 def _nl_send(descriptor, msg):
     _netlink.send(descriptor.fileno(), msg)
示例#3
0
 def _nl_send(descriptor, msg):
     _netlink.send(descriptor.fileno(), msg)
示例#4
0
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)