2023-09-30 15:02:30 +03:00
|
|
|
#include "unix_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"
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "cppISteamNetworkingSockets_SteamNetworkingSockets004.hpp"
|
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-30 15:02:30 +03:00
|
|
|
struct u_ISteamNetworkingSockets_SteamNetworkingSockets004 *iface = (struct u_ISteamNetworkingSockets_SteamNetworkingSockets004 *)params->linux_side;
|
|
|
|
u_SteamNetworkingMessage_t_144 *u_ppOutMessages[params->nMaxMessages];
|
|
|
|
params->_ret = iface->ReceiveMessagesOnConnection( params->hConn, u_ppOutMessages, params->nMaxMessages );
|
|
|
|
lin_to_win_struct_SteamNetworkingMessage_t( params->_ret, u_ppOutMessages,
|
2023-09-27 15:34:23 +03:00
|
|
|
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-30 15:02:30 +03:00
|
|
|
struct u_ISteamNetworkingSockets_SteamNetworkingSockets004 *iface = (struct u_ISteamNetworkingSockets_SteamNetworkingSockets004 *)params->linux_side;
|
|
|
|
u_SteamNetworkingMessage_t_144 *u_ppOutMessages[params->nMaxMessages];
|
|
|
|
params->_ret = iface->ReceiveMessagesOnListenSocket( params->hSocket, u_ppOutMessages, params->nMaxMessages );
|
|
|
|
lin_to_win_struct_SteamNetworkingMessage_t( params->_ret, u_ppOutMessages,
|
2023-09-27 15:34:23 +03:00
|
|
|
params->ppOutMessages, params->nMaxMessages );
|
2020-06-02 18:30:04 +03:00
|
|
|
}
|