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:
parent
a7a6a4a0da
commit
3b1e6d8b5e
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user