Add rayman2 source files
This commit is contained in:
23
Rayman_X/cpa/public/NET/L0DPlay.h
Normal file
23
Rayman_X/cpa/public/NET/L0DPlay.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
|
||||
L0DPlay.h
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef L0DPLAY_H
|
||||
#define L0DPLAY_H
|
||||
|
||||
#include <NET\NetDef.h>
|
||||
|
||||
enum { NetLib_DPlayClosed, NetLib_DPlayOpen };
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95DPlayOpenProtocol(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95DPlayCloseProtocol(void);
|
||||
_NET_EXPORT_ NetLib_tduwJoinType _NET_CALLING_CONV_ eL0PCWin95DPlayStart(char);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ eL0PCWin95DPlayFinish(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95DPlayIsProtocolAvailable(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95DPlayIsProtocolSet(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95DPlayGetPlayerName(NetLib_tduxPlayerId, char *, unsigned short);
|
||||
|
||||
#endif /* L0DPLAY_H */
|
22
Rayman_X/cpa/public/NET/L0GSUBI.h
Normal file
22
Rayman_X/cpa/public/NET/L0GSUBI.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
|
||||
L0GSUBI.h : GameService API
|
||||
|
||||
*/
|
||||
|
||||
#ifndef L0GSUBI_H
|
||||
#define L0GSUBI_H
|
||||
|
||||
#include <NET\NetDef.h>
|
||||
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95GSUBIOpenProtocol(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95GSUBICloseProtocol(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95GSUBIStart(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95GSUBIFinish(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95GSUBIIsProtocolAvailable(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95GSUBIIsProtocolSet(void);
|
||||
_NET_EXPORT_ NetLib_tduxPlayerId _NET_CALLING_CONV_ uxL0PCWin95GSUBIMasterId(void);
|
||||
|
||||
|
||||
#endif /* L0GSUBI_H */
|
22
Rayman_X/cpa/public/NET/L0IPX.h
Normal file
22
Rayman_X/cpa/public/NET/L0IPX.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
|
||||
L0IPX.H : IPX network API
|
||||
|
||||
*/
|
||||
|
||||
#ifndef L0IPX_H
|
||||
#define L0IPX_H
|
||||
|
||||
#include <NET\NetDef.h>
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95IPXOpenProtocol(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95IPXCloseProtocol(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95IPXAddPort(unsigned short);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95IPXClosePort(unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95IPXIsPortAvailable(unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95IPXIsProtocolAvailable(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95IPXIsProtocolSet(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95IPXIsPortOpened(unsigned short);
|
||||
|
||||
|
||||
#endif /* L0IPX_H */
|
22
Rayman_X/cpa/public/NET/L0Modem.h
Normal file
22
Rayman_X/cpa/public/NET/L0Modem.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
|
||||
L0Modem.h : modem API
|
||||
|
||||
*/
|
||||
|
||||
#ifndef __L0MODEMPCWIN95_PROTOS__
|
||||
|
||||
#define __L0MODEMPCWIN95_PROTOS__
|
||||
|
||||
#include <windows.h> /* for HINSTANCE */
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95ModemOpenProtocol(HINSTANCE hInstance, unsigned long);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95ModemCloseProtocol(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95ModemAnswerMode(char);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95ModemScan(char, long *, char *, unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95ModemDial(char *);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95ModemAddPort(long);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95ModemClosePort(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95ModemSetCallback(tdfnvModemCallback);
|
||||
|
||||
#endif /* __L0MODEMPCWIN95_PROTOS__ */
|
21
Rayman_X/cpa/public/NET/L0Serial.h
Normal file
21
Rayman_X/cpa/public/NET/L0Serial.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
|
||||
L0Serial.h : serial link cable API
|
||||
|
||||
*/
|
||||
|
||||
#ifndef L0SERIAL_H
|
||||
#define L0SERIAL_H
|
||||
|
||||
#include <NET\NetDef.h>
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95SerialOpenProtocol(unsigned long);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95SerialCloseProtocol(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95SerialAddPort(char*);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95SerialIsProtocolSet(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95SerialIsPortAvailable(char*);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95SerialIsProtocolAvailable(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95SerialIsPortOpened(char*);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95SerialClosePort(char*);
|
||||
|
||||
#endif /* L0SERIAL_H */
|
20
Rayman_X/cpa/public/NET/L0Shamem.h
Normal file
20
Rayman_X/cpa/public/NET/L0Shamem.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
|
||||
L0Shamem.h
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef L0SHAMEM_H
|
||||
#define L0SHAMEM_H
|
||||
|
||||
/*
|
||||
* prototypes
|
||||
*/
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95SharedMemOpenProtocol(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95SharedMemCloseProtocol(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0SetupWin95PCSharedMem(char *,unsigned char ,unsigned long);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95SharedMemIsProtocolSet(void);
|
||||
|
||||
#endif /* L0SHAMEM_H */
|
28
Rayman_X/cpa/public/NET/L0TCP.h
Normal file
28
Rayman_X/cpa/public/NET/L0TCP.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
|
||||
L0TCP.h : internet TCP API
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef L0TCP_H
|
||||
#define L0TCP_H
|
||||
|
||||
#include <NET\NetDef.h>
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95TCPOpenProtocol(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95TCPCloseProtocol(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95TCPGetMyAddress(char *, unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95TCPAddPort(unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95DirectTCPAddPort(unsigned short, long);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95DirectTCPAddPortSym(unsigned short, char *);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95TCPIsProtocolSet(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95TCPIsPortAvailable(unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95TCPIsPortOpened(unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95TCPIsProtocolAvailable(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95TCPClosePort(unsigned short);
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* L0TCP_H */
|
27
Rayman_X/cpa/public/NET/L0TEN.h
Normal file
27
Rayman_X/cpa/public/NET/L0TEN.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
|
||||
L0TEN.h
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef L0TEN_H
|
||||
#define L0TEN_H
|
||||
|
||||
#include <NET\NetDef.h>
|
||||
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95TENOpenProtocol(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95TENCloseProtocol(void);
|
||||
_NET_EXPORT_ NetLib_tduwJoinType _NET_CALLING_CONV_ eL0PCWin95TENStart(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ eL0PCWin95TENFinish(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ eL0PCWin95TENSetGameOptions(char *GameName,void *GameOptions,unsigned short SizeOptions);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ eL0PCWin95TENSetPlayerOptions(char *PlayerName,char *PlayerOptions,unsigned short SizeOptions);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95TENIsProtocolAvailable(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95TENIsProtocolSet(void);
|
||||
_NET_EXPORT_ int _NET_CALLING_CONV_ eL0PCWin95TENPlayerInfo(NetLib_tduxPlayerId PId,long *bandwidth,long *latency);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ eL0PCWin95TENLaunchTenClient(void (*rtn)(void));
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ eL0PCWin95TENGamePrivate(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ eL0PCWin95TENGamePublic(void);
|
||||
|
||||
#endif /* L0TEN_H */
|
24
Rayman_X/cpa/public/NET/L0UDP.h
Normal file
24
Rayman_X/cpa/public/NET/L0UDP.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
|
||||
L0UDP.h
|
||||
|
||||
*/
|
||||
|
||||
#ifndef L0UDP_H
|
||||
#define L0UDP_H
|
||||
|
||||
#include <NET\NetDef.h>
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95UDPOpenProtocol(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95UDPCloseProtocol(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95UDPAddPort(unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95DirectUDPAddPort(unsigned short, long);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95DirectUDPAddPortSym(unsigned short, char *);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95UDPIsProtocolSet(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95UDPIsPortAvailable(unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95UDPIsPortOpened(unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95UDPIsProtocolAvailable(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vL0PCWin95UDPClosePort(unsigned short);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eL0PCWin95UDPGetMyAddress(char *pcReturnStringAddress, unsigned short Size);
|
||||
|
||||
#endif /* L0UDP_H */
|
81
Rayman_X/cpa/public/NET/NetDebug.h
Normal file
81
Rayman_X/cpa/public/NET/NetDebug.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
|
||||
NetDebug.h : trace facilities
|
||||
|
||||
*/
|
||||
|
||||
#if !defined( __DEBUG )
|
||||
#define __DEBUG
|
||||
|
||||
#include "NET\NetDef.h"
|
||||
|
||||
#define NET_USE_DEBUG
|
||||
/*#define NET_MEMORY_DEBUG*/
|
||||
|
||||
#define Net_C_Debug_GSUbi 0
|
||||
#define Net_C_Debug_Ten 1
|
||||
#define Net_C_Debug_IPX 2
|
||||
#define Net_C_Debug_TCP 3
|
||||
#define Net_C_Debug_UDP 4
|
||||
#define Net_C_Debug_NetSer 5
|
||||
#define Net_C_Debug_NetL1 6
|
||||
#define Net_C_Debug_Serial 7
|
||||
#define Net_C_Debug_Modem 8
|
||||
#define Net_C_Debug_SLinks 9
|
||||
#define Net_C_Debug_SBlocks 10
|
||||
#define Net_C_Debug_SThread 11
|
||||
#define Net_C_Debug_SBuffin 12
|
||||
#define Net_C_Debug_SBuffout 13
|
||||
#define Net_C_Debug_Memory 14
|
||||
#define Net_C_Debug_DPlay 15
|
||||
#define Net_C_Debug_User_1 16
|
||||
#define Net_C_Debug_User_2 17
|
||||
#define Net_C_Debug_User_3 18
|
||||
|
||||
|
||||
/* Open a trace file. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugOpen(unsigned short uwNumFile);
|
||||
|
||||
/* Active a trace file. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugActiv(unsigned short uwNumFile);
|
||||
|
||||
/* Close a trace file. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugClose(unsigned short uwNumFile);
|
||||
|
||||
/* Ouput a format string in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugFormat(unsigned short uwNumFile,const char *pFormat,...);
|
||||
|
||||
/* Ouput a string in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugS(unsigned short uwNumFile,const char *s);
|
||||
|
||||
/* Ouput a string with a long in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugSI(unsigned short uwNumFile,const char *s,long l);
|
||||
|
||||
/* Ouput two string with a long in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugSISI(unsigned short uwNumFile,const char *s1,long l1,const char *s2,long l2);
|
||||
|
||||
/* Ouput three string with a long in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugSISISI(unsigned short uwNumFile,const char *s1,long l1,const char *s2,long l2,const char *s3,long l3);
|
||||
|
||||
/* Ouput four string with a long in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugSISISISI(unsigned short uwNumFile,const char *s1,long l1,const char *s2,long l2,const char *s3,long l3,const char *s4,long l4);
|
||||
|
||||
/* Ouput two string in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugSS(unsigned short uwNumFile,const char *s1,const char *s2);
|
||||
|
||||
/* Ouput three string in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugSSS(unsigned short uwNumFile,const char *s1,const char *s2,const char *s3);
|
||||
|
||||
/* Ouput a string with a long and a other string in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugSIS(unsigned short uwNumFile,const char *s1,long l1,const char *s2);
|
||||
|
||||
/* Ouput two string with a long in the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugSSI(unsigned short uwNumFile,const char *s1,const char *s2,long l1);
|
||||
|
||||
/* OutPut a string whith dump memory ... */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugSDump(unsigned short uwNumFile,const char *s,void *pAddr, unsigned long ulSize);
|
||||
|
||||
/* Clear the select file debug. */
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ vDebugClear(unsigned short uwNumFile);
|
||||
|
||||
#endif
|
211
Rayman_X/cpa/public/NET/NetDef.h
Normal file
211
Rayman_X/cpa/public/NET/NetDef.h
Normal file
@@ -0,0 +1,211 @@
|
||||
/*
|
||||
|
||||
NetDef.h : general constants / types definitions
|
||||
|
||||
*/
|
||||
|
||||
#ifndef NETDEF_H
|
||||
#define NETDEF_H
|
||||
|
||||
#include <NET\macros.h>
|
||||
|
||||
|
||||
|
||||
M_BeginDeclareEnumerate(NetLib_tdeErrorStatus)
|
||||
NetLib_E_es_NoError,/*0*/
|
||||
NetLib_E_es_AlreadyTooMuchPlayers,
|
||||
NetLib_E_es_BroadcastSimulation,
|
||||
NetLib_E_es_ConnectionFailure,
|
||||
NetLib_E_es_ConnectionRemoteRefused,
|
||||
NetLib_E_es_ConnectionSessionChanged,/*5*/
|
||||
NetLib_E_es_ConnectionWaitBusy,
|
||||
NetLib_E_es_False,
|
||||
NetLib_E_es_EmissionInProgress,
|
||||
NetLib_E_es_FIFOIsEmpty,
|
||||
NetLib_E_es_FIFOIsFull,/*10*/
|
||||
NetLib_E_es_FoundLessThanRequest,
|
||||
NetLib_E_es_InvalidHandle,
|
||||
NetLib_E_es_InvalidMessage,
|
||||
NetLib_E_es_MessageTooLong,
|
||||
NetLib_E_es_NoMorePlayers,/*15*/
|
||||
NetLib_E_es_NoNewPlayer,
|
||||
NetLib_E_es_NotEnoughMemory,
|
||||
NetLib_E_es_NotInitialized,
|
||||
NetLib_E_es_NumberOfPlayerLarger,
|
||||
NetLib_E_es_NumberOfPlayerSmaller,/*20*/
|
||||
NetLib_E_es_OperationInProgress,
|
||||
NetLib_E_es_PlayersNotInformed,
|
||||
NetLib_E_es_RouteUnkown,
|
||||
NetLib_E_es_ServiceNotYetProvided,
|
||||
NetLib_E_es_ShouldNotReach,/*25*/
|
||||
NetLib_E_es_ShouldWait,
|
||||
NetLib_E_es_SystemMessageUnknown,
|
||||
NetLib_E_es_TimeOut,
|
||||
NetLib_E_es_TimeOutExpired,
|
||||
NetLib_E_es_TimeOutNotExpired,/*30*/
|
||||
NetLib_E_es_TimeOutNotInitialised,
|
||||
NetLib_E_es_True,
|
||||
NetLib_E_es_UnknownError,
|
||||
NetLib_E_es_UnknownInitialRecipient,
|
||||
NetLib_E_es_UnknownPlayerId,/*35*/
|
||||
NetLib_E_es_UnknownRecipientId,
|
||||
NetLib_E_es_UnknownSenderId,
|
||||
NetLib_E_es_UnknownSessionId,
|
||||
|
||||
/* LEVEL 1 errors :*/
|
||||
NetLib_E_es_IdAlreadyInRouteTable,/*39*/
|
||||
NetLib_E_es_InvalidProtocol,/*40*/
|
||||
NetLib_E_es_NoBroadcastProtocol,
|
||||
NetLib_E_es_RouteTableIsFull,
|
||||
NetLib_E_es_SendFailure,
|
||||
NetLib_E_es_SessionIdAlreadyAcknowledged,
|
||||
|
||||
/* LEVEL 0 :*/
|
||||
NetLib_E_es_NoFullMessage,/*45*/
|
||||
NetLib_E_es_BufferIsFull,
|
||||
NetLib_E_es_ChannelIsInvalid,
|
||||
NetLib_E_es_NoChannelAvaible,
|
||||
NetLib_E_es_ChannelUninitialized,
|
||||
NetLib_E_es_InvalidChannel,/*50*/
|
||||
NetLib_E_es_ProtocolNotInitialized,
|
||||
NetLib_E_es_InvalidPortNumber,
|
||||
|
||||
NetLib_E_es_SerialFileCreationFailure,/*53*/
|
||||
NetLib_E_es_SerialInitFailure,
|
||||
NetLib_E_es_SerialSysMsgDone,/*55*/
|
||||
NetLib_E_es_SerialSysFailure,
|
||||
NetLib_E_es_SerialNotAllComInitialized,
|
||||
|
||||
NetLib_E_es_InitialisationSocketError,/*58*/
|
||||
NetLib_E_es_NoPortSelected,
|
||||
NetLib_E_es_PortAlreadyUsed,/*60*/
|
||||
NetLib_E_es_SelectSocketFailure,
|
||||
NetLib_E_es_SendSocketFailure,
|
||||
NetLib_E_es_MessagePartlySent,
|
||||
|
||||
NetLib_E_es_SharedMemNoName,/*64*/
|
||||
NetLib_E_es_SharedMemNameTooLong,/*65*/
|
||||
NetLib_E_es_SharedMemDefTableAlreadyExist,
|
||||
NetLib_E_es_SharedMemDefTableFull,
|
||||
NetLib_E_es_SharedMemCreateFailure,
|
||||
NetLib_E_es_SharedMemMapFailure,
|
||||
NetLib_E_es_SharedMemMutexFailure,/*70*/
|
||||
NetLib_E_es_SharedMemDataCorrupted,
|
||||
|
||||
NetLib_E_es_InitialisationModemError,/*72*/
|
||||
NetLib_E_es_SynchroWait,
|
||||
NetLib_E_es_SynchroOk,
|
||||
NetLib_E_es_SynchroNoAck,
|
||||
NetLib_E_es_SynchroNoSync
|
||||
M_EndDeclareEnumerate(NetLib_tdeErrorStatus, unsigned char)
|
||||
|
||||
|
||||
/* Typedef for the length of a description (both player and session)*/
|
||||
typedef unsigned char NetLib_tduxDescriptionLength;
|
||||
|
||||
/* player identification */
|
||||
typedef unsigned char NetLib_tduxPlayerId;
|
||||
|
||||
/* session identification */
|
||||
typedef unsigned char NetLib_tduxSessionId;
|
||||
|
||||
typedef char *tdpPointer;
|
||||
|
||||
/* read receipt operations */
|
||||
typedef unsigned char NetLib_uxReadReceiptId;
|
||||
typedef unsigned char NetLib_ucReadReceiptFlag;
|
||||
|
||||
/* little/big endian identification */
|
||||
typedef unsigned char NetLib_tducBigLittleEndian;
|
||||
|
||||
#ifdef _EXPORT_NETLIB_
|
||||
#define _NET_CALLING_CONV_ __cdecl
|
||||
#ifdef __cplusplus
|
||||
#define _NET_EXPORT_ extern "C" __declspec( dllexport )
|
||||
#else
|
||||
#define _NET_EXPORT_ __declspec( dllexport )
|
||||
#endif
|
||||
#else
|
||||
#define _NET_CALLING_CONV_
|
||||
#ifdef __cplusplus
|
||||
#define _NET_EXPORT_ extern "C"
|
||||
#else
|
||||
#define _NET_EXPORT_
|
||||
#endif
|
||||
#endif
|
||||
typedef void* (_NET_CALLING_CONV_ *td_pfn_vNetMemcpy)( void *, const void *, unsigned int);
|
||||
|
||||
#define C_pNull ((tdpPointer) 0)
|
||||
#define C_uxNetInvalidId ((NetLib_tduxPlayerId)255)
|
||||
#define C_uxNetLastUserId ((NetLib_tduxPlayerId)250)
|
||||
#define C_uxNetBroadcastId ((NetLib_tduxPlayerId)254)
|
||||
#define C_uxNetSystemId ((NetLib_tduxPlayerId)253)
|
||||
#define C_uwNetInvalidChannel ((tduwNetChannel)-1)
|
||||
#define C_GetNbrMsg_OUTGOING 1
|
||||
#define C_GetNbrMsg_INCOMING 2
|
||||
|
||||
|
||||
/* typedef for the Time information*/
|
||||
typedef unsigned long NetLib_tdulTimeInfo;
|
||||
|
||||
/* defining priorities :*/
|
||||
typedef unsigned short NetLib_tduxPriority;
|
||||
typedef unsigned short NetLib_tduxReplaceType;
|
||||
typedef unsigned short NetLib_tduxReplaceFlag;
|
||||
|
||||
#define NetLib_C_uxNoPriority 0 /* Smallest priority.*/
|
||||
#define NetLib_C_uxMaxPriority 15 /* Max priority.*/
|
||||
#define NetLib_C_uxMaxReplaceType 15 /* Max replace type.*/
|
||||
#define NetLib_C_uxReplaceOk 1 /* Activ replace.*/
|
||||
#define NetLib_C_uxNoReplace 0 /* No replace.*/
|
||||
|
||||
|
||||
/* Type of join game. */
|
||||
#define NetLib_Join_Create 0
|
||||
#define NetLib_Join_Join 1
|
||||
#define NetLib_Join_Watch 2
|
||||
#define NetLib_Join_NoGame 3
|
||||
|
||||
typedef unsigned short NetLib_tduwJoinType;
|
||||
|
||||
#define NetLib_Mode_Direct 0
|
||||
#define NetLib_Mode_TEN 1
|
||||
#define NetLib_Mode_UBI 2
|
||||
#define NetLib_Mode_MPATH 4
|
||||
#define NetLib_Mode_DPlay 5
|
||||
|
||||
typedef unsigned short NetLib_tduwMode;
|
||||
|
||||
typedef enum {
|
||||
Netlib_E_mcs_IDLE,
|
||||
Netlib_E_mcs_BUSY,
|
||||
Netlib_E_mcs_OFFERING,
|
||||
Netlib_E_mcs_ACCEPTED,
|
||||
Netlib_E_mcs_DIALTONE,
|
||||
Netlib_E_mcs_DIALING,
|
||||
Netlib_E_mcs_PROCEEDING,
|
||||
Netlib_E_mcs_RINGBACK,
|
||||
Netlib_E_mcs_CONNECTED,
|
||||
Netlib_E_mcs_DISCONNECTED
|
||||
} Netlib_tdeModemCallState;
|
||||
|
||||
typedef enum {
|
||||
Netlib_E_mdc_NORMAL,
|
||||
Netlib_E_mdc_UNKNOWN,
|
||||
Netlib_E_mdc_REJECT,
|
||||
Netlib_E_mdc_PICKUP,
|
||||
Netlib_E_mdc_FORWARDED,
|
||||
Netlib_E_mdc_BUSY,
|
||||
Netlib_E_mdc_NOANSWER,
|
||||
Netlib_E_mdc_BADADDRESS,
|
||||
Netlib_E_mdc_UNREACHABLE,
|
||||
Netlib_E_mdc_CONGESTION,
|
||||
Netlib_E_mdc_INCOMPATIBLE,
|
||||
Netlib_E_mdc_UNAVAIL,
|
||||
Netlib_E_mdc_NODIALTONE
|
||||
} Netlib_tdeModemDisconnectCause;
|
||||
|
||||
typedef void (*tdfnvModemCallback)(long, long);
|
||||
|
||||
|
||||
#endif /* NETDEF_H */
|
218
Rayman_X/cpa/public/NET/NetSer.h
Normal file
218
Rayman_X/cpa/public/NET/NetSer.h
Normal file
@@ -0,0 +1,218 @@
|
||||
/*
|
||||
|
||||
NetSer.h : API general functions
|
||||
|
||||
*/
|
||||
|
||||
#ifndef NETSER_H
|
||||
#define NETSER_H
|
||||
|
||||
#include <NET\NetDef.h>
|
||||
|
||||
|
||||
/* Contains players informations : */
|
||||
typedef struct NetLib_tdstPlayerInfo_
|
||||
{
|
||||
NetLib_tduxPlayerId m_uxPlayerId;
|
||||
tdpPointer pPlayerDescriptionData;
|
||||
NetLib_tduxDescriptionLength uxPlayerDescriptionLength;
|
||||
NetLib_tducBigLittleEndian m_ucLittleBigEndian;
|
||||
NetLib_tduwJoinType JoinType;
|
||||
char *Options;
|
||||
short wNewPlayer;
|
||||
char m_bOverInternet;
|
||||
}NetLib_tdstPlayerInfo;
|
||||
|
||||
|
||||
|
||||
/* Contains session informations */
|
||||
typedef struct NetLib_tdstSessionInfo_
|
||||
{
|
||||
NetLib_tduxSessionId uxSessionId;
|
||||
NetLib_tdstPlayerInfo *d_stPlayerInfo;
|
||||
tdpPointer pSessionDescriptionData;
|
||||
unsigned short uwMaxNumberOfPlayers;
|
||||
unsigned short uwNumberOfPlayers;
|
||||
unsigned short uwIndexOfLocalPlayer;
|
||||
NetLib_tduxDescriptionLength uxSessionDescriptionLength;
|
||||
char *GameOptions;
|
||||
NetLib_tduxDescriptionLength uxPlayerDescTruncation;
|
||||
}NetLib_tdstSessionInfo;
|
||||
|
||||
typedef void (_NET_CALLING_CONV_ *NetLib_tdfnvReadReceiptCallback)(NetLib_tduxPlayerId,NetLib_uxReadReceiptId,NetLib_ucReadReceiptFlag,long);
|
||||
typedef NetLib_tdulTimeInfo (_NET_CALLING_CONV_*NetLib_tdfnulGetTimeInfo)(void);
|
||||
typedef unsigned long (_NET_CALLING_CONV_ *NetLib_tdfnulRandom)(void);
|
||||
typedef void (_NET_CALLING_CONV_*NetLib_tdfnvDisconnectCallback)(NetLib_tduxPlayerId);
|
||||
|
||||
typedef NetLib_tdeErrorStatus (_NET_CALLING_CONV_*NetLib_tdfneFilterSessionCallback)(NetLib_tdstSessionInfo*);
|
||||
typedef NetLib_tdeErrorStatus (_NET_CALLING_CONV_*NetLib_tdfnePlayerConnectionRequestFilterCallback)(NetLib_tdstPlayerInfo*,long*);
|
||||
|
||||
typedef struct NetLib_tdstReadReceiptDesc_
|
||||
{
|
||||
NetLib_tdulTimeInfo m_ulMaxWaitingTime;
|
||||
NetLib_tdulTimeInfo m_ulReemitFreq;
|
||||
NetLib_uxReadReceiptId m_uxReadReceiptId;
|
||||
long m_lCallbackParam;
|
||||
NetLib_tdfnvReadReceiptCallback p_fnv_ReadReceiptCallback;
|
||||
}NetLib_tdstReadReceiptDesc;
|
||||
|
||||
/* Description of a send operation */
|
||||
typedef struct NetLib_tdstSendDesc_
|
||||
{
|
||||
NetLib_tduxPlayerId m_tduxRecipientId; /*the recipient of the message*/
|
||||
NetLib_tdulTimeInfo m_ulMaxWaitingTime; /* time-out */
|
||||
tdpPointer m_pMessageData; /* a buffer containing the message */
|
||||
unsigned short m_uwMessageLength; /* the length of the message*/
|
||||
NetLib_tduxPriority m_uxPriority; /* Priority */
|
||||
NetLib_tduxReplaceType m_uxReplaceType; /* Replace type */
|
||||
NetLib_tduxReplaceFlag m_uxReplaceFlag; /* Replace flag */
|
||||
NetLib_ucReadReceiptFlag m_ucReadReceiptFlag;/* flag for read receipt*/
|
||||
NetLib_tdstReadReceiptDesc m_stReadReceiptDesc;/* Description of the read receipt*/
|
||||
}NetLib_tdstSendDesc;
|
||||
|
||||
/* Description of a reading operation */
|
||||
typedef struct NetLib_tdstReadDesc_
|
||||
{
|
||||
NetLib_tduxPlayerId m_uxSenderId; /* the sender of the message */
|
||||
unsigned long m_uwMessageLength; /* the length of the buffer that will receive the message*/
|
||||
unsigned long m_uwOrigMsgLength; /* the length of the message in the lib*/
|
||||
tdpPointer m_pMessageData; /* the message */
|
||||
NetLib_tdulTimeInfo m_ulMaxWaitingTime; /* time-out */
|
||||
unsigned char m_bRemoveFromQueue; /* removing the message from the lib ?*/
|
||||
}NetLib_tdstReadDesc;
|
||||
|
||||
/* Description of a listening operation */
|
||||
typedef struct NetLib_tdstListenDesc_
|
||||
{
|
||||
NetLib_tdulTimeInfo m_ulMaxWaitingTime; /* time-out */
|
||||
NetLib_tduxPlayerId m_uxPlayerId; /* the id of the new player */
|
||||
tdpPointer m_pPlayerDescriptionData;/* description of the player */
|
||||
NetLib_tduxDescriptionLength m_uxPlayerDescriptionLength;/* the length of the description buffer */
|
||||
}NetLib_tdstListenDesc;
|
||||
|
||||
/* Description of a connecttosession operation*/
|
||||
typedef struct NetLib_tdstConnectDesc_
|
||||
{
|
||||
NetLib_tdulTimeInfo m_ulMaxWaitingTime;/*time-out*/
|
||||
NetLib_tduxSessionId m_uxSessionId; /* the id of the session to join*/
|
||||
long m_lConDenyParam;
|
||||
}NetLib_tdstConnectDesc;
|
||||
|
||||
typedef struct NetLib_tdstDoForAllDesc_
|
||||
{
|
||||
NetLib_tdeErrorStatus (_NET_CALLING_CONV_ *m_pfn_eForAll)(NetLib_tduxPlayerId,long);
|
||||
long m_lParameter;
|
||||
NetLib_tdeErrorStatus m_eGoOnCondition;
|
||||
unsigned char m_ucIncludeLocal;
|
||||
}NetLib_tdstDoForAllDesc;
|
||||
|
||||
/* Struct for blocking loop :*/
|
||||
typedef struct tdstNetBlockingLoopDescription_
|
||||
{
|
||||
NetLib_tdulTimeInfo m_ulMaxWaitingTime;
|
||||
NetLib_tdeErrorStatus (_NET_CALLING_CONV_ *m_pfn_eEvaluation)(long);
|
||||
long m_lParam;
|
||||
NetLib_tdeErrorStatus m_eGoOnCondition;
|
||||
}tdstNetBlockingLoopDescription;
|
||||
|
||||
|
||||
#define NetLib_C_ucAcceptWithoutListening ((unsigned char)1)
|
||||
#define NetLib_C_ucListenForAccept ((unsigned char)0)
|
||||
#define NetLib_C_uwInvalidPosition ((unsigned short)-1)
|
||||
#define NetLib_C_ucNotIncludeLocalPlayer ((unsigned char)0)
|
||||
#define NetLib_C_ucIncludeLocalPlayer ((unsigned char)1)
|
||||
|
||||
/* defining read receipt flags*/
|
||||
#define NetLib_C_ucNoReadReceipt ((unsigned char)-1)
|
||||
#define NetLib_C_ucReadReceiptRequired ((unsigned char)1)
|
||||
#define NetLib_C_ucReadReceiptSuccess ((unsigned char)2)
|
||||
#define NetLib_C_ucReadReceiptFailure ((unsigned char)0)
|
||||
|
||||
/* defining broadcast state */
|
||||
#define NetLib_C_TrueBroadcast 1
|
||||
#define NetLib_C_SimulBroadcast 0
|
||||
|
||||
/*////////////////////////////////////////////////////////////////////
|
||||
DEFINITION OF FUNCTIONS :
|
||||
////////////////////////////////////////////////////////////////////*/
|
||||
/* Initialisation functions :*/
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eInitializeGlobalData(unsigned long, char*,NetLib_tduwMode uwMode,short BroadcastIpx);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_eSetBroadcastState(short BroadcastIpx);
|
||||
|
||||
/* Callback initialisation function :*/
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vInitializeGetTimeInfoFunction(NetLib_tdfnulGetTimeInfo, unsigned long);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vInitializeMemcopyFunction(td_pfn_vNetMemcpy);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vInitializeRandomFunction(NetLib_tdfnulRandom);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vRegisterDisconnectCallback(NetLib_tdfnvDisconnectCallback);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vRegisterFilterSessionCallback(NetLib_tdfneFilterSessionCallback);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vRegisterPlayerConnectionRequestFilter(NetLib_tdfnePlayerConnectionRequestFilterCallback);
|
||||
|
||||
/* Setting NetLib parameters :*/
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eSetMaxNumberOfPlayers(unsigned short NewMaxNumberOfPlayer);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eSetSessionDescription(NetLib_tduxDescriptionLength,tdpPointer,char);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eSetLocalPlayerDescription(NetLib_tduxDescriptionLength,tdpPointer,char);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eSetPlayerDescription(NetLib_tduxPlayerId,NetLib_tduxDescriptionLength,tdpPointer,char);
|
||||
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vSetAcceptWithoutListening(unsigned char);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eSetInternetSimulDelay(NetLib_tdulTimeInfo ulTimeToWait,NetLib_tdulTimeInfo ulRandom);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vSetPreSessionPlayerMaxWaitingTime(NetLib_tdulTimeInfo);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vSetReemissionMode(unsigned char);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eSampleLagsAndLatencies(unsigned short,unsigned long);
|
||||
|
||||
/* getting informations :*/
|
||||
_NET_EXPORT_ NetLib_tducBigLittleEndian _NET_CALLING_CONV_ NetLib_ucGetLittleBigEndian(void);
|
||||
_NET_EXPORT_ NetLib_tducBigLittleEndian _NET_CALLING_CONV_ NetLib_ucGetPlayerLittleBigEndian(NetLib_tduxPlayerId);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eIsPlayerOverInternet(NetLib_tduxPlayerId);
|
||||
_NET_EXPORT_ NetLib_tduxSessionId _NET_CALLING_CONV_ NetLib_uxGetSessionId(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eGetSessionDescription(NetLib_tduxDescriptionLength*,tdpPointer);
|
||||
_NET_EXPORT_ NetLib_tduxDescriptionLength _NET_CALLING_CONV_ NetLib_uxGetSessionDescriptionLength(void);
|
||||
_NET_EXPORT_ unsigned short _NET_CALLING_CONV_ NetLib_uwGetMaxNumberOfPlayers(void);
|
||||
_NET_EXPORT_ unsigned short _NET_CALLING_CONV_ NetLib_uwGetTotalNumberPlayer(void);
|
||||
_NET_EXPORT_ NetLib_tduxPlayerId _NET_CALLING_CONV_ NetLib_uxGetOwnPlayerId(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eGetPlayersIdFromSession(NetLib_tduxPlayerId *,unsigned short *);
|
||||
_NET_EXPORT_ unsigned short _NET_CALLING_CONV_ NetLib_uwGetFirstRemotePlayerIdPosition(void);
|
||||
_NET_EXPORT_ NetLib_tduxPlayerId _NET_CALLING_CONV_ NetLib_uxGetNextRemotePlayerId(unsigned short*);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eGetPlayerDescription(NetLib_tduxDescriptionLength*,tdpPointer, NetLib_tduxPlayerId);
|
||||
_NET_EXPORT_ NetLib_tduxDescriptionLength _NET_CALLING_CONV_ NetLib_uxGetPlayerDescriptionLength(NetLib_tduxPlayerId);
|
||||
_NET_EXPORT_ NetLib_tdulTimeInfo _NET_CALLING_CONV_ NetLib_ulTellRemoteTimerValue(NetLib_tduxPlayerId ,NetLib_tdulTimeInfo);
|
||||
_NET_EXPORT_ NetLib_tdulTimeInfo _NET_CALLING_CONV_ NetLib_ulTellRemotePlayerLag(NetLib_tduxPlayerId ulRemoteId,unsigned short *pNumberOfPing);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eAcceptWithoutListening();
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_eGetPlayerName(NetLib_tduxPlayerId uxPlayerId,char *Name,unsigned short SizeMaxName);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_eGetGameName(char *Name,unsigned short SizeMaxName);
|
||||
|
||||
/* Getting sessions :*/
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eOpenGetActiveSessions(unsigned short,NetLib_tdulTimeInfo,NetLib_tduxDescriptionLength uxMaxPlayerInfo);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eCloseGetActiveSessions(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eCloseAndResetGetActiveSessions(void);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eGetSessionsFound(unsigned short *,NetLib_tdstSessionInfo **);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eGetActiveSessions(unsigned short*,NetLib_tdstSessionInfo**,NetLib_tdulTimeInfo,NetLib_tduxDescriptionLength uxMaxPlayerInfo);
|
||||
/* Connecting to a session :*/
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eConnectToSession(NetLib_tdstConnectDesc*);
|
||||
/* Accepting a player in the session :*/
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eListenForRequest(NetLib_tdstListenDesc*);
|
||||
|
||||
/* Disconnection */
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eDisconnectRemotePlayer(NetLib_tduxPlayerId);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vDisconnectAllRemotePlayers(void);
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vDisconnectFromSession(void);
|
||||
|
||||
/* Sending message functions :*/
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eSendMessage(NetLib_tdstSendDesc *);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eFlushSendingList(NetLib_tdulTimeInfo);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_ePlayerFlushCompleted(NetLib_tduxPlayerId,long);
|
||||
|
||||
/* getting message functions :*/
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eReadMessage(NetLib_tdstReadDesc *);
|
||||
|
||||
/* Engine :*/
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vEngine(void);
|
||||
|
||||
|
||||
/**/
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eDoForAllPlayers(NetLib_tdstDoForAllDesc *);
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ NetLib_eBlockingLoop(tdstNetBlockingLoopDescription *);
|
||||
|
||||
/* Closing the librairy :*/
|
||||
_NET_EXPORT_ void _NET_CALLING_CONV_ NetLib_vCloseLibrary(void);
|
||||
|
||||
#endif /* NETSER_H */
|
32
Rayman_X/cpa/public/NET/NetSynch.h
Normal file
32
Rayman_X/cpa/public/NET/NetSynch.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
|
||||
NetSynch.h : Synchronisation API
|
||||
|
||||
*/
|
||||
|
||||
/* Synchronisation module */
|
||||
|
||||
/* Author: David Fournier
|
||||
*
|
||||
* Creation Date: 10/04/97
|
||||
*/
|
||||
|
||||
#if !defined (__NETLIB_SYNCHRO__)
|
||||
#define __NETLIB_SYNCHRO__
|
||||
|
||||
#include "NET\NetSer.h"
|
||||
|
||||
typedef unsigned char NetLib_uxSynchroId;
|
||||
|
||||
#define NetLib_C_InvalidSynchroId 0xFF
|
||||
|
||||
|
||||
typedef void (_NET_CALLING_CONV_ *NetLib_tdfnvSynchroCallback)(NetLib_tduxPlayerId,NetLib_uxSynchroId,void *BufMes,unsigned long SizeMes);
|
||||
|
||||
_NET_EXPORT_ NetLib_tdeErrorStatus _NET_CALLING_CONV_ eNetLibWaitSynchro(NetLib_uxSynchroId uxSyncId,
|
||||
NetLib_tdulTimeInfo ulTimeOut,void *pBufMes,unsigned long ulSizeMes,
|
||||
NetLib_tdfnvSynchroCallback tdfnvCallback,int bWithoutAck,
|
||||
NetLib_tduxPlayerId ucMaster);
|
||||
|
||||
#endif /* __NETLIB_SYNCHRO__ */
|
||||
|
52
Rayman_X/cpa/public/NET/RASLaunch.h
Normal file
52
Rayman_X/cpa/public/NET/RASLaunch.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
|
||||
RASLaunch.h : internet modem connection facilities
|
||||
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* initialisation state */
|
||||
|
||||
enum { RASInitialized = 1, IPInitialized = 1<<2 };
|
||||
|
||||
/* various error codes */
|
||||
|
||||
enum {
|
||||
myRAS_NotInitialized = 1,
|
||||
myRAS_Busy,
|
||||
myRAS_IPUnavailable,
|
||||
myRAS_InvalidAddress,
|
||||
myRAS_InternalError };
|
||||
|
||||
/* connection state */
|
||||
|
||||
enum { myRAS_ERROR = -1, myRAS_UNKNOWN, myRAS_CONNECTED, myRAS_DISCONNECTED, myRAS_IDLE };
|
||||
|
||||
/* connectivity testing */
|
||||
|
||||
enum { myRAS_Testing = 1, myRAS_Connectable, myRAS_NotConnectable, myRAS_Canceled };
|
||||
|
||||
int RAS_Init(void);
|
||||
int RAS_Exit(void);
|
||||
|
||||
int RASScanEntries(char, char *, int);
|
||||
int RASScanConnections(char, char *, int, int *);
|
||||
int RASGetConnectionAccount(const char *pcEntryName, char *pcAccountName, char *pcPassword);
|
||||
int RASStartConnection(const char *, const char*, const char*);
|
||||
int RASGetConnectionState(void);
|
||||
int RASCloseConnection(void);
|
||||
|
||||
|
||||
int RASTouchTarget(const char *);
|
||||
int RASGetConnectivity();
|
||||
int RASCancelTouch();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
44
Rayman_X/cpa/public/NET/macros.h
Normal file
44
Rayman_X/cpa/public/NET/macros.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
|
||||
macros.h : macros used to define enumerated types
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#if !defined(__MACROS_H__)
|
||||
#define __MACROS_H__
|
||||
|
||||
/*
|
||||
* if the constants are not to be enumerated, the typedef does not
|
||||
* exist, enabling the programmer to choose the memory usage for the
|
||||
* variable. it is his responsibility to ensure that the scope is enough
|
||||
* for the enum range. the enumerated type is faked with the specified
|
||||
* type.
|
||||
* if the constants are enumerated, the type exists, and the variables
|
||||
* are of this type. the problem is that the memory usage is implementation-
|
||||
* dependant
|
||||
*/
|
||||
|
||||
#if defined(ENUMERATE_CONSTANTS)
|
||||
|
||||
#define M_BeginDeclareEnumerate(tdeWhatever) \
|
||||
typedef enum tdeWhatever##_ \
|
||||
{
|
||||
|
||||
#define M_EndDeclareEnumerate(tdeWhatever, type) \
|
||||
} tdeWhatever;
|
||||
|
||||
#else /* ENUMERATE_CONSTANTS */
|
||||
|
||||
#define M_BeginDeclareEnumerate(tdeWhatever) \
|
||||
enum \
|
||||
{
|
||||
|
||||
#define M_EndDeclareEnumerate(tdeWhatever, type) \
|
||||
}; \
|
||||
typedef type tdeWhatever;
|
||||
|
||||
#endif /* !ENUMERATE_CONSTANTS */
|
||||
|
||||
#endif /* !__MACROS_H__ */
|
||||
|
Reference in New Issue
Block a user