Yucom/lsteamclient/cppISteamNetworking_SteamNetworking001.cpp

95 lines
5.7 KiB
C++
Raw Normal View History

/* This file is auto-generated, do not edit. */
#include "unix_private.h"
#include "cppISteamNetworking_SteamNetworking001.h"
struct u_ISteamNetworking_SteamNetworking001
{
#ifdef __cplusplus
virtual uint32_t CreateListenSocket( int32_t, uint32_t, uint16_t ) = 0;
virtual uint32_t CreateP2PConnectionSocket( CSteamID, int32_t, int32_t ) = 0;
virtual uint32_t CreateConnectionSocket( uint32_t, uint16_t, int32_t ) = 0;
virtual bool DestroySocket( uint32_t, bool ) = 0;
virtual bool DestroyListenSocket( uint32_t, bool ) = 0;
virtual bool SendDataOnSocket( uint32_t, void *, uint32_t, bool ) = 0;
virtual bool IsDataAvailableOnSocket( uint32_t, uint32_t * ) = 0;
virtual bool RetrieveDataFromSocket( uint32_t, void *, uint32_t, uint32_t * ) = 0;
virtual bool IsDataAvailable( uint32_t, uint32_t *, uint32_t * ) = 0;
virtual bool RetrieveData( uint32_t, void *, uint32_t, uint32_t *, uint32_t * ) = 0;
virtual bool GetSocketInfo( uint32_t, CSteamID *, int32_t *, uint32_t *, uint16_t * ) = 0;
virtual bool GetListenSocketInfo( uint32_t, uint32_t *, uint16_t * ) = 0;
#endif /* __cplusplus */
};
void cppISteamNetworking_SteamNetworking001_CreateListenSocket( struct cppISteamNetworking_SteamNetworking001_CreateListenSocket_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->CreateListenSocket( params->nVirtualP2PPort, params->nIP, params->nPort );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_CreateP2PConnectionSocket( struct cppISteamNetworking_SteamNetworking001_CreateP2PConnectionSocket_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->CreateP2PConnectionSocket( params->steamIDTarget, params->nVirtualPort, params->nTimeoutSec );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_CreateConnectionSocket( struct cppISteamNetworking_SteamNetworking001_CreateConnectionSocket_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->CreateConnectionSocket( params->nIP, params->nPort, params->nTimeoutSec );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_DestroySocket( struct cppISteamNetworking_SteamNetworking001_DestroySocket_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->DestroySocket( params->hSocket, params->bNotifyRemoteEnd );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_DestroyListenSocket( struct cppISteamNetworking_SteamNetworking001_DestroyListenSocket_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->DestroyListenSocket( params->hSocket, params->bNotifyRemoteEnd );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_SendDataOnSocket( struct cppISteamNetworking_SteamNetworking001_SendDataOnSocket_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->SendDataOnSocket( params->hSocket, params->pubData, params->cubData, params->bReliable );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_IsDataAvailableOnSocket( struct cppISteamNetworking_SteamNetworking001_IsDataAvailableOnSocket_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->IsDataAvailableOnSocket( params->hSocket, params->pcubMsgSize );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_RetrieveDataFromSocket( struct cppISteamNetworking_SteamNetworking001_RetrieveDataFromSocket_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->RetrieveDataFromSocket( params->hSocket, params->pubDest, params->cubDest, params->pcubMsgSize );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_IsDataAvailable( struct cppISteamNetworking_SteamNetworking001_IsDataAvailable_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->IsDataAvailable( params->hListenSocket, params->pcubMsgSize, params->phSocket );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_RetrieveData( struct cppISteamNetworking_SteamNetworking001_RetrieveData_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->RetrieveData( params->hListenSocket, params->pubDest, params->cubDest, params->pcubMsgSize, params->phSocket );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_GetSocketInfo( struct cppISteamNetworking_SteamNetworking001_GetSocketInfo_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->GetSocketInfo( params->hSocket, params->pSteamIDRemote, params->peSocketStatus, params->punIPRemote, params->punPortRemote );
2018-01-18 17:24:05 +01:00
}
void cppISteamNetworking_SteamNetworking001_GetListenSocketInfo( struct cppISteamNetworking_SteamNetworking001_GetListenSocketInfo_params *params )
2018-01-18 17:24:05 +01:00
{
struct u_ISteamNetworking_SteamNetworking001 *iface = (struct u_ISteamNetworking_SteamNetworking001 *)params->linux_side;
params->_ret = iface->GetListenSocketInfo( params->hListenSocket, params->pnIP, params->pnPort );
2018-01-18 17:24:05 +01:00
}