1
0
mirror of https://github.com/solemnwarning/directplay-lite synced 2024-12-30 16:45:37 +01:00

Send guaranteed messages in soak/performance test.

This commit is contained in:
Daniel Collins 2018-11-07 09:04:41 +00:00
parent a7a6a4a0da
commit 3b1e6d8b5e
2 changed files with 3 additions and 3 deletions

View File

@ -320,7 +320,7 @@ static HRESULT CALLBACK callback(PVOID pvUserContext, DWORD dwMessageType, PVOID
*now_p = now;
DPNHANDLE s_handle;
HRESULT res = instance->SendTo(cp->dpnidPlayer, &bd, 1, 0, now_p, &s_handle, 0);
HRESULT res = instance->SendTo(cp->dpnidPlayer, &bd, 1, 0, now_p, &s_handle, DPNSEND_GUARANTEED);
if(res != DPNSUCCESS_PENDING)
{
timed_fprintf(stderr, "IDirectPlay8Peer::SendTo() failed with HRESULT %08x", (unsigned int)(res));
@ -389,7 +389,7 @@ static HRESULT CALLBACK callback(PVOID pvUserContext, DWORD dwMessageType, PVOID
*now_p = now;
DPNHANDLE s_handle;
HRESULT res = instance->SendTo(r->dpnidSender, &bd, 1, 0, now_p, &s_handle, 0);
HRESULT res = instance->SendTo(r->dpnidSender, &bd, 1, 0, now_p, &s_handle, DPNSEND_GUARANTEED);
if(res != DPNSUCCESS_PENDING)
{
timed_fprintf(stderr, "IDirectPlay8Peer::SendTo() failed with HRESULT %08x", (unsigned int)(res));

View File

@ -206,7 +206,7 @@ static HRESULT CALLBACK callback(PVOID pvUserContext, DWORD dwMessageType, PVOID
DPN_BUFFER_DESC bd = { r->dwReceiveDataSize, r->pReceiveData };
DPNHANDLE s_handle;
HRESULT res = instance->SendTo(r->dpnidSender, &bd, 1, 0, NULL, &s_handle, 0);
HRESULT res = instance->SendTo(r->dpnidSender, &bd, 1, 0, NULL, &s_handle, DPNSEND_GUARANTEED);
if(res != DPNSUCCESS_PENDING)
{
fprintf(stderr, "IDirectPlay8Peer::SendTo() failed with HRESULT %08x\n", (unsigned int)(res));