mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-28 23:55:52 +03:00
9ea65fe0d0
CW-Bug-Id: #22729
28 lines
1.6 KiB
C++
28 lines
1.6 KiB
C++
#include "unix_private.h"
|
|
|
|
extern "C"
|
|
{
|
|
#define SDK_VERSION 1460
|
|
#include "steamclient_manual_common.h"
|
|
}
|
|
|
|
#include "cppISteamNetworkingSockets_SteamNetworkingSockets004.hpp"
|
|
|
|
void cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnConnection( struct cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnConnection_params *params )
|
|
{
|
|
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,
|
|
params->ppOutMessages, params->nMaxMessages );
|
|
}
|
|
|
|
void cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnListenSocket( struct cppISteamNetworkingSockets_SteamNetworkingSockets004_ReceiveMessagesOnListenSocket_params *params )
|
|
{
|
|
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,
|
|
params->ppOutMessages, params->nMaxMessages );
|
|
}
|