Exemplo n.º 1
0
    def perfmon(self, clear=True):
        """
        Garther a current performance status of socket. 

        :param clear:   Clear history on checking 
        :type  clear:   bool() 

        :return:    udt4.TRACEINFO 
        """
        return udt4.perfmon(self.__sock, clear)
Exemplo n.º 2
0
    def perfmon(self, clear = True):
        """
        Garther a current performance status of socket. 

        :param clear:   Clear history on checking 
        :type  clear:   bool() 

        :return:    udt4.TRACEINFO 
        """
        return udt4.perfmon(self.__sock, clear) 
Exemplo n.º 3
0
def main(settings):
    global mode 
    mode = settings['mode'] 

    udt4.startup() 
    
    #time.sleep(1) # just to wait for server
    
    if not create_client(settings['host'], settings['port']):
        print('failed to create client')
        return 1
    
    perf = udt4.perfmon(client) 
    print(perf)
    print(perf.pktSentTotal)
    print(perf.pktRecvTotal)
    print(perf.usPktSndPeriod)
    print(perf.msRTT)
    test0()
    test1()

    udt4.close(client)