예제 #1
0
 def callback(msg, arg):
     got_something.append(arg)
     nl_msg_dump(msg)
     return NL_OK
예제 #2
0
파일: test_socket_.py 프로젝트: 0x90/libnl
 def callback(msg, arg):
     got_something.append(arg)
     nl_msg_dump(msg)
     return NL_OK
예제 #3
0
def nl_msg_out_handler_debug(msg, arg):
    """https://github.com/thom311/libnl/blob/libnl3_2_25/lib/handlers.c#L124."""
    ofd = arg or _LOGGER.debug
    ofd('-- Debug: Sent Message:')
    nl_msg_dump(msg, ofd)
    return NL_OK