mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-21 21:26:03 +01:00
parent
4988734817
commit
a1445b757d
391 changed files with 19128 additions and 5873 deletions
|
|
@ -11,104 +11,151 @@ extern "C" {
|
|||
#define SDKVER_110
|
||||
#include "struct_converters.h"
|
||||
#include "cppISteamNetworking_SteamNetworking003.h"
|
||||
|
||||
struct cppISteamNetworking_SteamNetworking003
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
virtual bool SendP2PPacket( CSteamID, const void *, uint32_t, uint32_t ) = 0;
|
||||
virtual bool IsP2PPacketAvailable( uint32_t * ) = 0;
|
||||
virtual bool ReadP2PPacket( void *, uint32_t, uint32_t *, CSteamID * ) = 0;
|
||||
virtual bool AcceptP2PSessionWithUser( CSteamID ) = 0;
|
||||
virtual bool CloseP2PSessionWithUser( CSteamID ) = 0;
|
||||
virtual bool GetP2PSessionState( CSteamID, P2PSessionState_t * ) = 0;
|
||||
virtual uint32_t CreateListenSocket( int32_t, uint32_t, uint16_t, bool ) = 0;
|
||||
virtual uint32_t CreateP2PConnectionSocket( CSteamID, int32_t, int32_t, bool ) = 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;
|
||||
virtual uint32_t GetSocketConnectionType( uint32_t ) = 0;
|
||||
virtual int32_t GetMaxPacketSize( uint32_t ) = 0;
|
||||
#endif /* __cplusplus */
|
||||
};
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_SendP2PPacket( struct cppISteamNetworking_SteamNetworking003_SendP2PPacket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->SendP2PPacket( (CSteamID)params->steamIDRemote, (const void *)params->pubData, (uint32)params->cubData, (EP2PSend)params->eP2PSendType );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->SendP2PPacket( params->steamIDRemote, params->pubData, params->cubData, params->eP2PSendType );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_IsP2PPacketAvailable( struct cppISteamNetworking_SteamNetworking003_IsP2PPacketAvailable_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->IsP2PPacketAvailable( (uint32 *)params->pcubMsgSize );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->IsP2PPacketAvailable( params->pcubMsgSize );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_ReadP2PPacket( struct cppISteamNetworking_SteamNetworking003_ReadP2PPacket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->ReadP2PPacket( (void *)params->pubDest, (uint32)params->cubDest, (uint32 *)params->pcubMsgSize, (CSteamID *)params->psteamIDRemote );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->ReadP2PPacket( params->pubDest, params->cubDest, params->pcubMsgSize, params->psteamIDRemote );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_AcceptP2PSessionWithUser( struct cppISteamNetworking_SteamNetworking003_AcceptP2PSessionWithUser_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->AcceptP2PSessionWithUser( (CSteamID)params->steamIDRemote );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->AcceptP2PSessionWithUser( params->steamIDRemote );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_CloseP2PSessionWithUser( struct cppISteamNetworking_SteamNetworking003_CloseP2PSessionWithUser_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->CloseP2PSessionWithUser( (CSteamID)params->steamIDRemote );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->CloseP2PSessionWithUser( params->steamIDRemote );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_GetP2PSessionState( struct cppISteamNetworking_SteamNetworking003_GetP2PSessionState_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->GetP2PSessionState( (CSteamID)params->steamIDRemote, (P2PSessionState_t *)params->pConnectionState );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->GetP2PSessionState( params->steamIDRemote, params->pConnectionState );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_CreateListenSocket( struct cppISteamNetworking_SteamNetworking003_CreateListenSocket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->CreateListenSocket( (int)params->nVirtualP2PPort, (uint32)params->nIP, (uint16)params->nPort, (bool)params->bAllowUseOfPacketRelay );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->CreateListenSocket( params->nVirtualP2PPort, params->nIP, params->nPort, params->bAllowUseOfPacketRelay );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_CreateP2PConnectionSocket( struct cppISteamNetworking_SteamNetworking003_CreateP2PConnectionSocket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->CreateP2PConnectionSocket( (CSteamID)params->steamIDTarget, (int)params->nVirtualPort, (int)params->nTimeoutSec, (bool)params->bAllowUseOfPacketRelay );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->CreateP2PConnectionSocket( params->steamIDTarget, params->nVirtualPort, params->nTimeoutSec, params->bAllowUseOfPacketRelay );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_CreateConnectionSocket( struct cppISteamNetworking_SteamNetworking003_CreateConnectionSocket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->CreateConnectionSocket( (uint32)params->nIP, (uint16)params->nPort, (int)params->nTimeoutSec );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->CreateConnectionSocket( params->nIP, params->nPort, params->nTimeoutSec );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_DestroySocket( struct cppISteamNetworking_SteamNetworking003_DestroySocket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->DestroySocket( (SNetSocket_t)params->hSocket, (bool)params->bNotifyRemoteEnd );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->DestroySocket( params->hSocket, params->bNotifyRemoteEnd );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_DestroyListenSocket( struct cppISteamNetworking_SteamNetworking003_DestroyListenSocket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->DestroyListenSocket( (SNetListenSocket_t)params->hSocket, (bool)params->bNotifyRemoteEnd );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->DestroyListenSocket( params->hSocket, params->bNotifyRemoteEnd );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_SendDataOnSocket( struct cppISteamNetworking_SteamNetworking003_SendDataOnSocket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->SendDataOnSocket( (SNetSocket_t)params->hSocket, (void *)params->pubData, (uint32)params->cubData, (bool)params->bReliable );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->SendDataOnSocket( params->hSocket, params->pubData, params->cubData, params->bReliable );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_IsDataAvailableOnSocket( struct cppISteamNetworking_SteamNetworking003_IsDataAvailableOnSocket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->IsDataAvailableOnSocket( (SNetSocket_t)params->hSocket, (uint32 *)params->pcubMsgSize );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->IsDataAvailableOnSocket( params->hSocket, params->pcubMsgSize );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_RetrieveDataFromSocket( struct cppISteamNetworking_SteamNetworking003_RetrieveDataFromSocket_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->RetrieveDataFromSocket( (SNetSocket_t)params->hSocket, (void *)params->pubDest, (uint32)params->cubDest, (uint32 *)params->pcubMsgSize );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->RetrieveDataFromSocket( params->hSocket, params->pubDest, params->cubDest, params->pcubMsgSize );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_IsDataAvailable( struct cppISteamNetworking_SteamNetworking003_IsDataAvailable_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->IsDataAvailable( (SNetListenSocket_t)params->hListenSocket, (uint32 *)params->pcubMsgSize, (SNetSocket_t *)params->phSocket );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->IsDataAvailable( params->hListenSocket, params->pcubMsgSize, params->phSocket );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_RetrieveData( struct cppISteamNetworking_SteamNetworking003_RetrieveData_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->RetrieveData( (SNetListenSocket_t)params->hListenSocket, (void *)params->pubDest, (uint32)params->cubDest, (uint32 *)params->pcubMsgSize, (SNetSocket_t *)params->phSocket );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->RetrieveData( params->hListenSocket, params->pubDest, params->cubDest, params->pcubMsgSize, params->phSocket );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_GetSocketInfo( struct cppISteamNetworking_SteamNetworking003_GetSocketInfo_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->GetSocketInfo( (SNetSocket_t)params->hSocket, (CSteamID *)params->pSteamIDRemote, (int *)params->peSocketStatus, (uint32 *)params->punIPRemote, (uint16 *)params->punPortRemote );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->GetSocketInfo( params->hSocket, params->pSteamIDRemote, params->peSocketStatus, params->punIPRemote, params->punPortRemote );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_GetListenSocketInfo( struct cppISteamNetworking_SteamNetworking003_GetListenSocketInfo_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->GetListenSocketInfo( (SNetListenSocket_t)params->hListenSocket, (uint32 *)params->pnIP, (uint16 *)params->pnPort );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->GetListenSocketInfo( params->hListenSocket, params->pnIP, params->pnPort );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_GetSocketConnectionType( struct cppISteamNetworking_SteamNetworking003_GetSocketConnectionType_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->GetSocketConnectionType( (SNetSocket_t)params->hSocket );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->GetSocketConnectionType( params->hSocket );
|
||||
}
|
||||
|
||||
void cppISteamNetworking_SteamNetworking003_GetMaxPacketSize( struct cppISteamNetworking_SteamNetworking003_GetMaxPacketSize_params *params )
|
||||
{
|
||||
params->_ret = ((ISteamNetworking*)params->linux_side)->GetMaxPacketSize( (SNetSocket_t)params->hSocket );
|
||||
struct cppISteamNetworking_SteamNetworking003 *iface = (struct cppISteamNetworking_SteamNetworking003 *)params->linux_side;
|
||||
params->_ret = iface->GetMaxPacketSize( params->hSocket );
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue