Main Page | Modules | File List | File Members

RegServerLibrary.h

Go to the documentation of this file.
00001 //****************************************************************************
00002 //*   Author:  Pierre-Luc Rigaux  gsdevelopers@ubisoft.com
00003 //*   Date:    5/31/02 11:00:53 AM
00009 //****************************************************************************
00010 
00032 #ifndef _REGSERVERLIBRARY_H_
00033 #define _REGSERVERLIBRARY_H_
00034 
00035 extern "C" {
00043 //============================================================================
00044 // CallBack CBRegServerRcv_LoginRouterResult
00045 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00046 // Date:                5/13/2002 5:11:54 PM
00060 //============================================================================
00061 typedef GSvoid (__stdcall *CBRegServerRcv_LoginRouterResult)(GSubyte ucType,
00062                 GSint lReason, const GSchar* szIPAddress);
00063 
00064 //============================================================================
00065 // CallBack CB  CBRegServerRcv_RouterDisconnection
00066 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00067 // Date:                5/13/2002 5:12:01 PM
00075 //============================================================================
00076 typedef GSvoid (__stdcall *CBRegServerRcv_RouterDisconnection)();
00077 
00078 //============================================================================
00079 // CallBack CBRegServerRcv_RegisterServer
00080 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00081 // Date:                5/13/2002 5:12:15 PM
00098 //============================================================================
00099 typedef GSvoid (__stdcall *CBRegServerRcv_RegisterServer)(GSubyte ucType,
00100                 GSint lReason, GSint iGroupID, const GSchar* szAddress, GSushort usPort,
00101                 const GSchar* szSessionName);
00102 
00103 //============================================================================
00104 // CallBack CBRegServerRcv_RequestParentGroup
00105 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00106 // Date:                5/13/2002 5:12:21 PM
00124 //============================================================================
00125 typedef GSvoid (__stdcall *CBRegServerRcv_RequestParentGroup)(GSubyte ucType, 
00126                 GSint lReason, GSint iLobbyServerID,    GSint iGroupID,
00127                 const GSchar* szGroupName, GSuint uiNbPlayers, GSuint uiMaxPlayers );
00128 
00129 
00130 //============================================================================
00131 // CallBack CBRegServerRcv_LobbyServerLogin
00132 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00133 // Date:                5/13/2002 5:12:34 PM
00148 //============================================================================
00149 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerLogin)( GSubyte ucType,
00150                 GSint iReason, GSint iLobbyServerID, GSint iGroupID );
00151 
00152 //============================================================================
00153 // CallBack CBRegServerRcv_LobbyServerUpdateGroupSettings
00154 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00155 // Date:                5/13/2002 5:12:39 PM
00169 //============================================================================
00170 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerUpdateGroupSettings)
00171                 (GSubyte ucType, GSint iReason, GSint iGroupID );
00172 
00173 //============================================================================
00174 // CallBack CBRegServerRcv_LobbyServerDisconnection
00175 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00176 // Date:                5/13/2002 5:12:44 PM
00184 //============================================================================
00185 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerDisconnection)();
00186 
00187 //============================================================================
00188 // CallBack CBRegServerRcv_LobbyServerMemberNew
00189 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00190 // Date:                5/13/2002 5:12:48 PM
00207 //============================================================================
00208 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerMemberNew)(
00209                 const GSchar* szMember, GSbool bSpectator, const GSchar* szIPAddress,
00210                 const GSchar* szAltIPAddress, const GSvoid* pPlayerInfo,
00211                 GSuint uiPlayerInfoSize, GSushort usPlayerStatus );
00212 
00213 
00214 //============================================================================
00215 // CallBack CBRegServerRcv_LobbyServerMemberLeft 
00216 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00217 // Date:                7/23/2002 11:13:05 AM
00226 //============================================================================
00227 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerMemberLeft )(
00228                 const GSchar* szMember );
00229 
00230 
00231 //============================================================================
00232 // CallBack CBRegServerRcv_LobbyServerMatchStartReply
00233 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00234 // Date:                7/23/2002 11:13:17 AM
00248 //============================================================================
00249 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerMatchStartReply)(
00250                 GSubyte ucType, GSint iReason, GSint iGroupID );
00251 
00252 //============================================================================
00253 // CallBack CBRegServerRcv_LobbyServerMatchFinishReply
00254 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00255 // Date:                7/23/2002 11:13:24 AM
00269 //============================================================================
00270 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerMatchFinishReply)(
00271                 GSubyte ucType, GSint iReason, GSint iGroupID );
00272 
00273 //============================================================================
00274 // CallBack CBRegServerRcv_LobbyServerGroupConfigUpdate
00275 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00276 // Date:                7/23/2002 11:13:30 AM
00292 //============================================================================
00293 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerGroupConfigUpdate)(
00294                 GSuint uiGroupConfig, GSint iGroupID );
00295 
00296 //============================================================================
00297 // CallBack CBRegServerRcv_LobbyServerMemberUpdateStatus
00298 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00299 // Date:                7/23/2002 11:13:38 AM
00310 //============================================================================
00311 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerMemberUpdateStatus)(
00312                 const GSchar* szMember, GSushort usMemberStatus );
00313 
00314 
00315 //============================================================================
00316 // CallBack CBRegServerRcv_LobbyServerNewUpdateGroup 
00317 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00318 // Date:                7/23/2002 11:13:46 AM
00351 //============================================================================
00352 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerNewUpdateGroup )
00353         ( GSushort usRoomType,
00354                 const GSchar* szRoomName,
00355                 GSint iGroupID,
00356                 GSint iLobbyServerID,
00357                 GSint iParentGroupID,
00358                 GSint uiGroupConfig,
00359                 GSshort sGroupLevel,
00360                 const GSchar* szMaster,
00361                 const GSchar* szAllowedGames,
00362                 const GSchar* szGame,
00363                 const GSvoid* pGroupInfo,
00364                 GSuint uiGroupInfoSize,
00365                 GSuint uiMatchEventID,
00366                 GSuint uiMaxPlayers,
00367                 GSuint uiNbPlayers,     
00368                 GSuint uiMaxSpectators,
00369                 GSuint uiNbSpectators,
00370                 const GSchar* szGameVersion,
00371                 const GSchar* szGSGameVersion,
00372                 const GSchar* szIPAddress,
00373                 const GSchar* szAltIPAddress );
00374 
00375 
00376 //============================================================================
00377 // CallBack CBRegServerRcv_LobbyServerMemberUpdateInfo
00378 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00379 // Date:                7/23/2002 5:52:55 PM
00390 //============================================================================
00391 typedef GSvoid (__stdcall *CBRegServerRcv_LobbyServerMemberUpdateInfo) (
00392                 const GSchar* szMember, const GSvoid* pPlayerInfo, GSuint uiPlayerInfoSize );
00393 
00397 //******************************************************************************
00398 // The Functions
00399 //******************************************************************************
00400 
00410 //============================================================================
00411 // Function RegServerLibrary_Initialize
00412 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00413 // Date:                5/3/2002 2:47:59 PM
00427 //============================================================================
00428 GSbool __stdcall RegServerLibrary_Initialize();
00429 
00430 
00431 //============================================================================
00432 // Function RegServerLibrary_Uninitialize
00433 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00434 // Date:                5/3/2002 2:47:55 PM
00446 //============================================================================
00447 GSbool __stdcall RegServerLibrary_Uninitialize();
00448 
00449 
00450 //============================================================================
00451 // Function RegServer_Engine
00452 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00453 // Date:                5/3/2002 2:47:52 PM
00463 //============================================================================
00464 GSvoid __stdcall RegServer_Engine();
00465 
00477 //============================================================================
00478 // Function RegServerSend_RouterConnect
00479 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00480 // Date:                5/3/2002 2:47:48 PM
00494 //============================================================================
00495 GSbool __stdcall RegServerSend_RouterConnect(const GSchar* szAddress,
00496                 GSushort usPort);
00497 
00498 
00499 //============================================================================
00500 // Function RegServerSend_LoginRouter
00501 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00502 // Date:                5/3/2002 2:47:45 PM
00523 //============================================================================
00524 GSbool __stdcall RegServerSend_LoginRouter(const GSchar* szUsername,
00525                 const GSchar* szPassword, const GSchar* szVersion);
00526 
00527 
00528 //============================================================================
00529 // Function RegServerSend_RouterDisconnect
00530 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00531 // Date:                5/3/2002 2:47:39 PM
00547 //============================================================================
00548 GSbool __stdcall RegServerSend_RouterDisconnect();
00549 
00550 
00551 //============================================================================
00552 // Function RegServerSend_RequestParentGroupOnLobby
00553 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00554 // Date:                5/3/2002 2:47:35 PM
00570 //============================================================================
00571 GSbool __stdcall RegServerSend_RequestParentGroupOnLobby(
00572         const GSchar* szGameName);
00573 
00574 
00575 //============================================================================
00576 // Function RegServerSend_RegisterServerOnLobby
00577 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00578 // Date:                5/3/2002 2:47:28 PM
00622 //============================================================================
00623 GSbool __stdcall RegServerSend_RegisterServerOnLobby(
00624                 GSuint uiLobbyID, 
00625                 GSint iParentID, 
00626                 const GSchar* szRoomName, 
00627                 const GSchar* szGameName,
00628                 GSushort uwRoomType, 
00629                 GSuint uiMaxPlayer, 
00630                 GSuint uiMaxSpectator, 
00631                 const GSchar* szPassword,
00632                 const GSvoid* pstGroupInfo, 
00633                 GSint iGroupInfoSize, 
00634                 const GSvoid* pstAltGroupInfo, 
00635                 GSint iAltGroupInfoSize, 
00636                 const GSvoid* pstGameData, 
00637                 GSint iGameDataSize,
00638                 GSushort usGamePort,
00639                 const GSchar* szGameVersion, 
00640                 const GSchar* szGSVersion, 
00641                 GSbool bScoreSubmission,
00642                 GSbool bDedicatedServer );
00656 //============================================================================
00657 // Function RegServerSend_LobbyServerConnection
00658 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00659 // Date:                5/3/2002 2:47:24 PM
00679 //============================================================================
00680 GSbool __stdcall RegServerSend_LobbyServerConnection( const GSchar* szAddress,
00681                 GSushort usPort, GSushort usLocalPort = 0, GSuint uiStillAliveDelay = 25,
00682                 GSuint uiDisconnectionDelay = 120 );
00683 
00684 //============================================================================
00685 // Function RegServerSend_LobbyServerClose
00686 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00687 // Date:                5/3/2002 2:47:17 PM
00701 //============================================================================
00702 GSbool __stdcall RegServerSend_LobbyServerClose();
00703 
00704 //============================================================================
00705 // Function RegServerSend_LobbyServerLogin
00706 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00707 // Date:                5/3/2002 2:47:10 PM
00726 //============================================================================
00727 GSbool __stdcall RegServerSend_LobbyServerLogin( const GSchar* szUsername,
00728                 GSint iGroupID );
00729 
00730 //============================================================================
00731 // Function RegServerSend_UpdateGroupSettings
00732 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00733 // Date:                5/3/2002 2:46:08 PM
00763 //============================================================================
00764 GSbool __stdcall RegServerSend_UpdateGroupSettings(
00765                 GSint iGroupID,         
00766                 GSbyte bOpen,
00767                 GSbyte bScoreSubmission,
00768                 GSbyte bDedicatedServer,
00769                 GSint uiMaxPlayers,
00770                 GSint uiMaxSpectator,
00771                 const GSchar* szPassword,
00772                 const GSvoid* pucGroupInfo,
00773                 GSint iGroupInfoSize,
00774                 const GSvoid* pucAltGroupInfo,
00775                 GSint iAltGroupInfoSize,
00776                 const GSvoid* pucGameData,
00777                 GSint iGameDataSize,
00778                 GSushort usGamePort);
00779 
00780 //============================================================================
00781 // Function RegServerSend_LobbyServerMemberJoin
00782 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00783 // Date:                5/8/2002 6:17:43 PM
00797 //============================================================================
00798 GSbool __stdcall RegServerSend_LobbyServerMemberJoin( const GSchar* szUsername );
00799 
00800 
00801 //============================================================================
00802 // Function RegServerSend_LobbyServerMemberLeave
00803 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00804 // Date:                5/8/2002 6:17:47 PM
00818 //============================================================================
00819 GSbool __stdcall RegServerSend_LobbyServerMemberLeave( const GSchar* szUsername );
00820 
00821 
00822 //============================================================================
00823 // Function RegServerSend_MatchStart
00824 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00825 // Date:                7/11/2002 4:45:34 PM
00840 //============================================================================
00841 GSbool __stdcall RegServerSend_MatchStart( GSuint uiMode = 0 );
00842 
00843 
00844 //============================================================================
00845 // Function RegServerSend_MatchFinish
00846 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00847 // Date:                7/23/2002 11:14:37 AM
00860 //============================================================================
00861 GSbool __stdcall RegServerSend_MatchFinish( );
00862 
00876 //============================================================================
00877 // Function RegServerFix_LoginRouterResult
00878 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00879 // Date:                5/3/2002 2:46:15 PM
00888 //============================================================================
00889 GSvoid __stdcall RegServerFix_LoginRouterResult(
00890                 CBRegServerRcv_LoginRouterResult fLoginRouterResult);
00891 
00892 
00893 //============================================================================
00894 // Function RegServerFix_RouterDisconnection
00895 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00896 // Date:                5/3/2002 2:46:26 PM
00904 //============================================================================
00905 GSvoid __stdcall RegServerFix_RouterDisconnection(
00906                 CBRegServerRcv_RouterDisconnection fRouterDisconnection);
00907 
00908 
00909 //============================================================================
00910 // Function RegServerFix_RegisterServerResult
00911 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00912 // Date:                5/3/2002 2:46:31 PM
00920 //============================================================================
00921 GSvoid __stdcall RegServerFix_RegisterServerResult(
00922                 CBRegServerRcv_RegisterServer fRegisterServer);
00923 
00924 
00925 //============================================================================
00926 // Function RegServerFix_RequestParentGroupResult
00927 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00928 // Date:                5/3/2002 2:37:32 PM
00935 //============================================================================
00936 GSvoid __stdcall RegServerFix_RequestParentGroupResult(
00937                 CBRegServerRcv_RequestParentGroup fRequestParentGroup);
00938 
00939 //============================================================================
00940 // Function RegServerFix_LobbyServerLoginResult
00941 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00942 // Date:                5/3/2002 2:46:37 PM
00949 //============================================================================
00950 GSvoid __stdcall RegServerFix_LobbyServerLoginResult(
00951                 CBRegServerRcv_LobbyServerLogin fLobbyServerLogging );
00952 
00953 //============================================================================
00954 // Function RegServerFix_LobbyServerUpdateGroupSettingsResult
00955 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00956 // Date:                5/3/2002 2:46:54 PM
00963 //============================================================================
00964 GSvoid __stdcall RegServerFix_LobbyServerUpdateGroupSettingsResult(
00965                 CBRegServerRcv_LobbyServerUpdateGroupSettings fLobbyServerUpdateGroupSettings );
00966 
00967 //============================================================================
00968 // Function RegServerFix_LobbyServerDisconnection
00969 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00970 // Date:                5/3/2002 2:47:00 PM
00978 //============================================================================
00979 GSvoid __stdcall RegServerFix_LobbyServerDisconnection(
00980                 CBRegServerRcv_LobbyServerDisconnection fLobbyServerDisconnection );
00981 
00982 
00983 //============================================================================
00984 // Function RegServerFix_LobbyServerNewMember
00985 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
00986 // Date:                5/8/2002 6:17:34 PM
00993 //============================================================================
00994 GSvoid __stdcall RegServerFix_LobbyServerMemberNew(
00995                 CBRegServerRcv_LobbyServerMemberNew fLobbyServerMemberNew );
00996 
00997 
00998 //============================================================================
00999 // Function RegServerFix_LobbyServerMemberLeft
01000 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
01001 // Date:                7/23/2002 11:14:20 AM
01008 //============================================================================
01009 GSvoid __stdcall RegServerFix_LobbyServerMemberLeft(
01010                 CBRegServerRcv_LobbyServerMemberLeft fLobbyServerMemberLeft );
01011 
01012 
01013 //============================================================================
01014 // Function RegServerFix_LobbyServerMatchStartReply
01015 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
01016 // Date:                7/23/2002 11:14:17 AM
01023 //============================================================================
01024 GSvoid __stdcall RegServerFix_LobbyServerMatchStartReply(
01025                 CBRegServerRcv_LobbyServerMatchStartReply fLobbyServerMatchStartReply );
01026 
01027 
01028 //============================================================================
01029 // Function RegServerFix_LobbyServerMatchFinishReply
01030 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
01031 // Date:                7/23/2002 11:14:13 AM
01038 //============================================================================
01039 GSvoid __stdcall RegServerFix_LobbyServerMatchFinishReply(
01040                 CBRegServerRcv_LobbyServerMatchFinishReply fLobbyServerMatchFinishReply );
01041 
01042 
01043 //============================================================================
01044 // Function RegServerFix_LobbyServerGroupConfigUpdate
01045 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
01046 // Date:                7/23/2002 11:14:09 AM
01053 //============================================================================
01054 GSvoid __stdcall RegServerFix_LobbyServerGroupConfigUpdate(
01055                 CBRegServerRcv_LobbyServerGroupConfigUpdate fLobbyServerGroupConfigUpdate );
01056 
01057 
01058 //============================================================================
01059 // Function RegServerFix_LobbyServerMemberUpdateStatus
01060 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
01061 // Date:                7/23/2002 11:14:04 AM
01069 //============================================================================
01070 GSvoid __stdcall RegServerFix_LobbyServerMemberUpdateStatus(
01071                 CBRegServerRcv_LobbyServerMemberUpdateStatus fLobbyServerMemberUpdateStatus );
01072 
01073 
01074 //============================================================================
01075 // Function RegServerFix_LobbyServerNewGroup
01076 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
01077 // Date:                7/23/2002 11:13:57 AM
01084 //============================================================================
01085 GSvoid __stdcall RegServerFix_LobbyServerNewUpdateGroup(
01086                 CBRegServerRcv_LobbyServerNewUpdateGroup fLobbyServerNewUpdateGroup );
01087 
01088 
01089 //============================================================================
01090 // Function RegServerFix_LobbyServerMemberUpdateInfo
01091 // Author:              Pierre-Luc Rigaux plrigaux@ubisoft.com
01092 // Date:                7/23/2002 5:52:44 PM
01099 //============================================================================
01100 GSvoid __stdcall RegServerFix_LobbyServerMemberUpdateInfo(
01101                 CBRegServerRcv_LobbyServerMemberUpdateInfo fLobbyServerMemberUpdateInfo );
01102 
01103 }; //extern C
01106 #endif //_REGSERVERLIBRARY_H_

Ubi.com GameService SDK - ©UbiSoft Entertainment 2002
GameService development team