#NEWLINE# def get_stats( self ) : #NEWLINE# #INDENT# '\n        Returns some statistics.\n\n        :returns: a tuple containing bytes send, received, send errors, recv errors\n        ' #NEWLINE# sent = ctypes . c_uint32 ( ) #NEWLINE# recv = ctypes . c_uint32 ( ) #NEWLINE# send_errors = ctypes . c_uint32 ( ) #NEWLINE# recv_errors = ctypes . c_uint32 ( ) #NEWLINE# result = self . library . Par_GetStats ( self . pointer , ctypes . byref ( sent ) , ctypes . byref ( sent ) , ctypes . byref ( send_errors ) , ctypes . byref ( recv_errors ) ) #NEWLINE# check_error ( result , 'partner' ) #NEWLINE# return ( sent , recv , send_errors , recv_errors )