2023-09-18 00:16:30 +03:00
|
|
|
#include "steamclient_private.h"
|
2020-06-02 18:30:04 +03:00
|
|
|
|
2023-09-24 12:11:25 +03:00
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#define SDK_VERSION 1460
|
|
|
|
#include "steamclient_manual_common.h"
|
|
|
|
}
|
|
|
|
|
2020-06-02 18:30:04 +03:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-09-20 09:23:56 +03:00
|
|
|
#pragma push_macro("strncpy")
|
|
|
|
#undef strncpy
|
2023-09-24 12:11:25 +03:00
|
|
|
#include "cppISteamNetworkingSockets_SteamNetworkingSockets004.hpp"
|
2020-06-02 18:30:04 +03:00
|
|
|
#pragma pop_macro("__cdecl")
|
2023-09-20 09:23:56 +03:00
|
|
|
#pragma pop_macro("strncpy")
|
2020-06-02 18:30:04 +03:00
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnConnection( struct cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnConnection_params *params )
|
2020-06-02 18:30:04 +03:00
|
|
|
{
|
2023-09-24 12:11:25 +03:00
|
|
|
struct cppISteamNetworkingSockets_SteamNetworkingSockets004 *iface = (struct cppISteamNetworkingSockets_SteamNetworkingSockets004 *)params->linux_side;
|
2023-09-27 15:34:23 +03:00
|
|
|
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 );
|
2020-06-02 18:30:04 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnListenSocket( struct cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnListenSocket_params *params )
|
|
|
|
{
|
2023-09-24 12:11:25 +03:00
|
|
|
struct cppISteamNetworkingSockets_SteamNetworkingSockets004 *iface = (struct cppISteamNetworkingSockets_SteamNetworkingSockets004 *)params->linux_side;
|
2023-09-27 15:34:23 +03:00
|
|
|
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 );
|
2020-06-02 18:30:04 +03:00
|
|
|
}
|