DP8SIM_PARAMETERS Structure

DirectPlay

 
Microsoft DirectX 9.0 SDK Update (Summer 2003)

DP8SIM_PARAMETERS Structure


Used to set and retrieve DP8Sim settings.

Syntax

typedef struct _DP8SIM_PARAMTERS {
    DWORD dwSize;
    DWORD dwFlags;
    DWORD dwPacketHeaderSize;
    DWORD dwBandwidthBPS;
    FLOAT fPcketLossPercent;
    DWORD dwMinLatencyMS;
    DWORD dwMaxLatencyMS;
} DP8SIM_PARAMETERS, *PDP8SIM_PARAMETERS;

Members

dwSize
Must be set the to size of this structure, in bytes, before using this structure.
dwFlags
Unused. Must be zero.
dwPacketHeaderSize
Fixed transport packet header size for packet size calculations, or 0 to calculate based on Microsoft® DirectPlay® headers and payload only. The following values are defined for convenience.
DP8SIMPACKETHEADERSIZE_IP
Represents the standard Internet Protocol (IP) header size, 20 bytes.
DP8SIMPACKETHEADERSIZE_UDP
Represents the standard User Datagram Protocol (UDP) header size, 8 bytes.
DP8SIMPACKETHEADERSIZE_IP_UDP
Represents the standard IP and UDP header size, 28 bytes. This is the recommended value.
dwBandwidthBPS
Bandwidth limit in bytes per second. Set to 0 for no limit.
fPcketLossPercent
Percentage of packets to drop. Can be a value between 0.0 and 100.0.
dwMinLatencyMS
Minimum artificial latency, in milliseconds. This value is in addition to any latency cause by bandwidth settings.
dwMaxLatencyMS
Maximum artificial latency, in milliseconds. This value is in addition to any latency cause by bandwidth settings.

Structure Information

Headerdp8sim.h
Minimum operating systems Windows 98, Pocket PC 2002

© 2003 Microsoft Corporation. All rights reserved.