2019-08-14 22:12:15 +03:00
|
|
|
extern "C" {
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
|
|
|
|
}
|
|
|
|
|
2019-05-16 19:23:30 +03:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-09-20 09:23:56 +03:00
|
|
|
#pragma push_macro("strncpy")
|
|
|
|
#undef strncpy
|
2019-05-16 19:23:30 +03:00
|
|
|
#include "steamworks_sdk_144/steam_api.h"
|
2019-05-30 18:28:09 +03:00
|
|
|
#include "steamworks_sdk_144/isteamnetworkingsockets.h"
|
2019-05-16 19:23:30 +03:00
|
|
|
#include "steamworks_sdk_144/steamnetworkingtypes.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma pop_macro("__cdecl")
|
2023-09-20 09:23:56 +03:00
|
|
|
#pragma pop_macro("strncpy")
|
2019-05-16 19:23:30 +03:00
|
|
|
#include "steamclient_private.h"
|
2019-08-14 22:12:15 +03:00
|
|
|
|
2019-05-16 19:23:30 +03:00
|
|
|
extern "C" {
|
|
|
|
#define SDKVER_144
|
|
|
|
#include "struct_converters.h"
|
|
|
|
|
2023-08-24 02:27:02 +03:00
|
|
|
#define SDK_VERSION 1440
|
|
|
|
#include "steamclient_manual_common.h"
|
2019-05-30 18:28:09 +03:00
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
#include "cppISteamNetworkingSockets_SteamNetworkingSockets002.h"
|
2019-05-30 18:28:09 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnConnection( struct cppISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnConnection_params *params )
|
2019-05-30 18:28:09 +03:00
|
|
|
{
|
2023-09-27 15:34:23 +03:00
|
|
|
ISteamNetworkingSockets *iface = (ISteamNetworkingSockets *)params->linux_side;
|
|
|
|
SteamNetworkingMessage_t *lin_ppOutMessages[params->nMaxMessages];
|
|
|
|
params->_ret = iface->ReceiveMessagesOnConnection( params->hConn, lin_ppOutMessages, params->nMaxMessages );
|
|
|
|
lin_to_win_struct_SteamNetworkingMessage_t( params->_ret, lin_ppOutMessages,
|
|
|
|
params->ppOutMessages, params->nMaxMessages );
|
2019-05-16 19:23:30 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnListenSocket( struct cppISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnListenSocket_params *params )
|
|
|
|
{
|
|
|
|
ISteamNetworkingSockets *iface = (ISteamNetworkingSockets *)params->linux_side;
|
|
|
|
SteamNetworkingMessage_t *lin_ppOutMessages[params->nMaxMessages];
|
|
|
|
params->_ret = iface->ReceiveMessagesOnListenSocket( params->hSocket, lin_ppOutMessages, params->nMaxMessages );
|
|
|
|
lin_to_win_struct_SteamNetworkingMessage_t( params->_ret, lin_ppOutMessages,
|
|
|
|
params->ppOutMessages, params->nMaxMessages );
|
2019-05-16 19:23:30 +03:00
|
|
|
}
|