Lines Matching refs:autodetect

119 	context->rdp->autodetect->rttMeasureStartTime = GetTickCount64();  in autodetect_send_rtt_measure_request()
300 timeDelta = GetTickCount64() - rdp->autodetect->bandwidthMeasureStartTime; in autodetect_send_bandwidth_measure_results()
310 timeDelta, rdp->autodetect->bandwidthMeasureByteCount); in autodetect_send_bandwidth_measure_results()
316 Stream_Write_UINT32(s, rdp->autodetect->bandwidthMeasureByteCount); /* byteCount (4 bytes) */ in autodetect_send_bandwidth_measure_results()
317 IFCALLRET(rdp->autodetect->ClientBandwidthMeasureResult, success, rdp->context, in autodetect_send_bandwidth_measure_results()
318 rdp->autodetect); in autodetect_send_bandwidth_measure_results()
336 if (context->rdp->autodetect->netCharBandwidth > 0) in autodetect_send_netchar_result()
342 Stream_Write_UINT32(s, context->rdp->autodetect->netCharBaseRTT); /* baseRTT (4 bytes) */ in autodetect_send_netchar_result()
344 context->rdp->autodetect->netCharBandwidth); /* bandwidth (4 bytes) */ in autodetect_send_netchar_result()
346 context->rdp->autodetect->netCharAverageRTT); /* averageRTT (4 bytes) */ in autodetect_send_netchar_result()
354 Stream_Write_UINT32(s, context->rdp->autodetect->netCharBaseRTT); /* baseRTT (4 bytes) */ in autodetect_send_netchar_result()
356 context->rdp->autodetect->netCharAverageRTT); /* averageRTT (4 bytes) */ in autodetect_send_netchar_result()
373 rdp->autodetect->netCharBandwidth, rdp->autodetect->netCharAverageRTT); in autodetect_send_netchar_sync()
378 Stream_Write_UINT32(s, rdp->autodetect->netCharBandwidth); /* bandwidth (4 bytes) */ in autodetect_send_netchar_sync()
379 Stream_Write_UINT32(s, rdp->autodetect->netCharAverageRTT); /* rtt (4 bytes) */ in autodetect_send_netchar_sync()
403 rdp->autodetect->netCharAverageRTT = GetTickCount64() - rdp->autodetect->rttMeasureStartTime; in autodetect_recv_rtt_measure_response()
405 if (rdp->autodetect->netCharBaseRTT == 0 || in autodetect_recv_rtt_measure_response()
406 rdp->autodetect->netCharBaseRTT > rdp->autodetect->netCharAverageRTT) in autodetect_recv_rtt_measure_response()
407 rdp->autodetect->netCharBaseRTT = rdp->autodetect->netCharAverageRTT; in autodetect_recv_rtt_measure_response()
409 IFCALLRET(rdp->autodetect->RTTMeasureResponse, success, rdp->context, in autodetect_recv_rtt_measure_response()
423 rdp->autodetect->bandwidthMeasureStartTime = GetTickCount64(); in autodetect_recv_bandwidth_measure_start()
424 rdp->autodetect->bandwidthMeasureByteCount = 0; in autodetect_recv_bandwidth_measure_start()
429 rdp->autodetect->bandwidthMeasureStarted = TRUE; in autodetect_recv_bandwidth_measure_start()
452 rdp->autodetect->bandwidthMeasureByteCount += payloadLength; in autodetect_recv_bandwidth_measure_payload()
486 rdp->autodetect->bandwidthMeasureByteCount += payloadLength; in autodetect_recv_bandwidth_measure_stop()
491 rdp->autodetect->bandwidthMeasureStarted = FALSE; in autodetect_recv_bandwidth_measure_stop()
513 Stream_Read_UINT32(s, rdp->autodetect->bandwidthMeasureTimeDelta); /* timeDelta (4 bytes) */ in autodetect_recv_bandwidth_measure_results()
514 Stream_Read_UINT32(s, rdp->autodetect->bandwidthMeasureByteCount); /* byteCount (4 bytes) */ in autodetect_recv_bandwidth_measure_results()
516 if (rdp->autodetect->bandwidthMeasureTimeDelta > 0) in autodetect_recv_bandwidth_measure_results()
517 rdp->autodetect->netCharBandwidth = rdp->autodetect->bandwidthMeasureByteCount * 8 / in autodetect_recv_bandwidth_measure_results()
518 rdp->autodetect->bandwidthMeasureTimeDelta; in autodetect_recv_bandwidth_measure_results()
520 rdp->autodetect->netCharBandwidth = 0; in autodetect_recv_bandwidth_measure_results()
522 IFCALLRET(rdp->autodetect->BandwidthMeasureResults, success, rdp->context, in autodetect_recv_bandwidth_measure_results()
540 Stream_Read_UINT32(s, rdp->autodetect->netCharBaseRTT); /* baseRTT (4 bytes) */ in autodetect_recv_netchar_result()
541 Stream_Read_UINT32(s, rdp->autodetect->netCharAverageRTT); /* averageRTT (4 bytes) */ in autodetect_recv_netchar_result()
550 Stream_Read_UINT32(s, rdp->autodetect->netCharBandwidth); /* bandwidth (4 bytes) */ in autodetect_recv_netchar_result()
551 Stream_Read_UINT32(s, rdp->autodetect->netCharAverageRTT); /* averageRTT (4 bytes) */ in autodetect_recv_netchar_result()
560 Stream_Read_UINT32(s, rdp->autodetect->netCharBaseRTT); /* baseRTT (4 bytes) */ in autodetect_recv_netchar_result()
561 Stream_Read_UINT32(s, rdp->autodetect->netCharBandwidth); /* bandwidth (4 bytes) */ in autodetect_recv_netchar_result()
562 Stream_Read_UINT32(s, rdp->autodetect->netCharAverageRTT); /* averageRTT (4 bytes) */ in autodetect_recv_netchar_result()
569 rdp->autodetect->netCharBaseRTT, rdp->autodetect->netCharBandwidth, in autodetect_recv_netchar_result()
570 rdp->autodetect->netCharAverageRTT); in autodetect_recv_netchar_result()
571 IFCALLRET(rdp->autodetect->NetworkCharacteristicsResult, success, rdp->context, in autodetect_recv_netchar_result()
724 void autodetect_register_server_callbacks(rdpAutoDetect* autodetect) in autodetect_register_server_callbacks() argument
726 autodetect->RTTMeasureRequest = autodetect_send_continuous_rtt_measure_request; in autodetect_register_server_callbacks()
727 autodetect->BandwidthMeasureStart = autodetect_send_continuous_bandwidth_measure_start; in autodetect_register_server_callbacks()
728 autodetect->BandwidthMeasureStop = autodetect_send_continuous_bandwidth_measure_stop; in autodetect_register_server_callbacks()
729 autodetect->NetworkCharacteristicsResult = autodetect_send_netchar_result; in autodetect_register_server_callbacks()