mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-01 17:45:46 +03:00
4dfab8d8b6
CW-Bug-Id: #22729
41 lines
1.8 KiB
C++
41 lines
1.8 KiB
C++
#include "steamclient_private.h"
|
|
|
|
#include "steam_defs.h"
|
|
#pragma push_macro("__cdecl")
|
|
#undef __cdecl
|
|
#pragma push_macro("strncpy")
|
|
#undef strncpy
|
|
#include "steamworks_sdk_144/steam_api.h"
|
|
#include "steamworks_sdk_144/isteamnetworkingsockets.h"
|
|
#include "steamworks_sdk_144/steamnetworkingtypes.h"
|
|
#pragma pop_macro("__cdecl")
|
|
#pragma pop_macro("strncpy")
|
|
|
|
extern "C" {
|
|
#define SDKVER_144
|
|
#include "struct_converters.h"
|
|
|
|
#define SDK_VERSION 1440
|
|
#include "steamclient_manual_common.h"
|
|
|
|
#include "cppISteamNetworkingSockets_SteamNetworkingSockets002.h"
|
|
}
|
|
|
|
void cppISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnConnection( struct cppISteamNetworkingSockets_SteamNetworkingSockets002_ReceiveMessagesOnConnection_params *params )
|
|
{
|
|
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 );
|
|
}
|
|
|
|
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 );
|
|
}
|