Blame include/freerdp/autodetect.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Auto-Detect PDUs
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2014 Dell Software <Mike.McDonald@software.dell.com>
Packit 1fb8d4
 * Copyright 2014 Vic Lee
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_AUTODETECT_H
Packit 1fb8d4
#define FREERDP_AUTODETECT_H
Packit 1fb8d4
Packit 1fb8d4
typedef struct rdp_autodetect rdpAutoDetect;
Packit 1fb8d4
Packit 1fb8d4
typedef BOOL (*pRTTMeasureRequest)(rdpContext* context, UINT16 sequenceNumber);
Packit 1fb8d4
typedef BOOL (*pRTTMeasureResponse)(rdpContext* context, UINT16 sequenceNumber);
Packit 1fb8d4
typedef BOOL (*pBandwidthMeasureStart)(rdpContext* context, UINT16 sequenceNumber);
Packit 1fb8d4
typedef BOOL (*pBandwidthMeasureStop)(rdpContext* context, UINT16 sequenceNumber);
Packit 1fb8d4
typedef BOOL (*pBandwidthMeasureResults)(rdpContext* context, UINT16 sequenceNumber);
Packit 1fb8d4
typedef BOOL (*pNetworkCharacteristicsResult)(rdpContext* context, UINT16 sequenceNumber);
Packit 1fb8d4
typedef BOOL (*pClientBandwidthMeasureResult)(rdpContext* context, rdpAutoDetect* data);
Packit 1fb8d4
Packit 1fb8d4
struct rdp_autodetect
Packit 1fb8d4
{
Packit 1fb8d4
	ALIGN64 rdpContext* context; /* 0 */
Packit 1fb8d4
	/* RTT measurement */
Packit 1fb8d4
	ALIGN64 UINT32 rttMeasureStartTime; /* 1 */
Packit 1fb8d4
	/* Bandwidth measurement */
Packit 1fb8d4
	ALIGN64 UINT32 bandwidthMeasureStartTime; /* 2 */
Packit 1fb8d4
	ALIGN64 UINT32 bandwidthMeasureTimeDelta; /* 3 */
Packit 1fb8d4
	ALIGN64 UINT32 bandwidthMeasureByteCount; /* 4 */
Packit 1fb8d4
	/* Network characteristics (as reported by server) */
Packit 1fb8d4
	ALIGN64 UINT32 netCharBandwidth; /* 5 */
Packit 1fb8d4
	ALIGN64 UINT32 netCharBaseRTT; /* 6 */
Packit 1fb8d4
	ALIGN64 UINT32 netCharAverageRTT; /* 7 */
Packit 1fb8d4
	ALIGN64 BOOL bandwidthMeasureStarted; /* 8 */
Packit 1fb8d4
	UINT64 paddingA[16 - 9]; /* 9 */
Packit 1fb8d4
Packit 1fb8d4
	ALIGN64 pRTTMeasureRequest RTTMeasureRequest; /* 16 */
Packit 1fb8d4
	ALIGN64 pRTTMeasureResponse RTTMeasureResponse; /* 17 */
Packit 1fb8d4
	ALIGN64 pBandwidthMeasureStart BandwidthMeasureStart; /* 18 */
Packit 1fb8d4
	ALIGN64 pBandwidthMeasureStop BandwidthMeasureStop; /* 19 */
Packit 1fb8d4
	ALIGN64 pBandwidthMeasureResults BandwidthMeasureResults; /* 20 */
Packit 1fb8d4
	ALIGN64 pNetworkCharacteristicsResult NetworkCharacteristicsResult; /* 21 */
Packit 1fb8d4
	ALIGN64 pClientBandwidthMeasureResult ClientBandwidthMeasureResult; /* 22 */
Packit 1fb8d4
	UINT64 paddingB[32 - 23]; /* 23 */
Packit 1fb8d4
};
Packit 1fb8d4
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_AUTODETECT_H */