
NetPlay
Description: DirectPlay wrapper
Source file: ...\genesis3d\OpenSource\Source\NETPLAY.h
Contents:
Functions:
DoDPError, InitNetPlay, NetPlayEnumSession, NetPlayJoinSession, NetPlayCreateSession, NetPlayCreatePlayer, NetPlayDestroyPlayer, NetPlaySend, NetPlayReceive, DeInitNetPlay, CPrintfC
Types:
SP_DESC, SESSION_DESC
Constants:
view
Variables:
view
Additions to Genesis3D v1.6: None

Constants:
- #define NETPLAY_OPEN_CREATE 1
- #define NETPLAY_OPEN_JOIN 2
Return to Contents

Types:
- SP_DESC
typedef struct {
char Desc[200]; // Description of Service provider
GUID Guid; // Global Service Provider GUID
} SP_DESC;
Return to Contents
SESSION_DESC
- typedef struct {
- char SessionName[200]; // Description of Service provider
- GUID Guid; // Global Service Provider GUID
- } SESSION_DESC;
Return to Contents

Variables:
extern SP_DESC GlobalSP; // Global info about the sp
extern SESSION_DESC* GlobalSession; // Global sessions availible
extern LPGUID glpGuid;
Return to Contents

Functions:

void
DoDPError(HRESULT Hr);
Return to Contents

BOOL
InitNetPlay(LPGUID lpGuid);
Return to Contents

BOOL
NetPlayEnumSession(LPSTR IPAdress, SESSION_DESC** SessionList, DWORD* SessionNum);
Return to Contents

BOOL
NetPlayJoinSession(SESSION_DESC* SessionList);
Return to Contents

BOOL
NetPlayCreateSession(LPSTR SessionName, DWORD MaxPlayers);
Return to Contents

BOOL
NetPlayCreatePlayer(LPDPID lppidID, LPTSTR lptszPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, geBoolean ServerPlayer);
Return to Contents

BOOL
NetPlayDestroyPlayer(DPID pid);
Return to Contents

HRESULT
NetPlaySend(DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize);
Return to Contents

HRESULT
NetPlayReceive(LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize);
Return to Contents

BOOL
DeInitNetPlay(void);
Return to Contents

BOOL AFX_
CPrintfC(char *String);
// HACK!!!! Function is in Engine.cpp (So NetPlay.C can call it...)
Return to Contents
