30 #include "../../engine/Parcel/TrackBundle.h" 32 #include "TrackSelectDialog.h" 34 #include "GifDecoder.h" 62 BOOL Send(HWND pWindow,
unsigned long pIP,
unsigned int pPort,
const char *pURL,
const char *pCoookie = NULL);
65 BOOL ProcessEvent(WPARAM pWParam, LPARAM pLParam);
67 const char *GetBuffer()
const;
68 const char *GetBinBuffer(
int &pSize)
const;
114 int mClientList[eMaxPlayerGame];
120 static InternetRoom *mThis;
124 std::string mMainServer;
126 int mCurrentUserIndex;
128 int mCurrentGameIndex;
133 Client mClientList[eMaxClient];
134 Game mGameList[eMaxGame];
136 std::string mChatBuffer;
138 int mLastRefreshTimeStamp;
143 HANDLE mCurrentLocateRequest;
144 char mHostEnt[MAXGETHOSTSTRUCT];
145 std::string mNetOpString;
146 std::string mNetOpRequest;
147 NetworkSession *mSession;
148 VideoServices::VideoBuffer *mVideoBuffer;
149 int mNbSuccessiveRefreshTimeOut;
151 InternetRequest mOpRequest;
152 InternetRequest mChatRequest;
153 InternetRequest mRefreshRequest;
154 InternetRequest mBannerRequest;
155 InternetRequest mClickRequest;
159 WNDPROC oldBannerProc;
161 int mCurrentBannerIndex;
165 std::ofstream *chatLog;
170 static BOOL CALLBACK RoomCallBack(HWND pWindow, UINT pMsgId, WPARAM pWParam, LPARAM pLParam);
171 static BOOL CALLBACK BannerCallBack(HWND pWindow, UINT pMsgId, WPARAM pWParam, LPARAM pLParam);
172 static BOOL CALLBACK NetOpCallBack(HWND pWindow, UINT pMsgId, WPARAM pWParam, LPARAM pLParam);
173 static BOOL CALLBACK FastNetOpCallBack(HWND pWindow, UINT pMsgId, WPARAM pWParam, LPARAM pLParam);
174 static BOOL CALLBACK GetAddrCallBack(HWND pWindow, UINT pMsgId, WPARAM pWParam, LPARAM pLParam);
176 BOOL AskRoomParams(HWND pParentWindow, BOOL pShouldRecheckServer);
180 BOOL AddUserOp(HWND pParentWindow);
181 BOOL DelUserOp(HWND pParentWindow, BOOL pFastMode = FALSE);
182 BOOL AddGameOp(HWND pParentWindow,
const char *pGameName,
const char *pTrackName,
int pNbLap,
char pGameOpts,
unsigned pPort);
183 BOOL DelGameOp(HWND pParentWindow);
184 BOOL JoinGameOp(HWND pParentWindow,
int pGameIndex);
185 BOOL LeaveGameOp(HWND pParentWindow);
186 BOOL AddMessageOp(HWND pParentWindow,
const char *pMessage,
int pNbHours = 0,
int lNbMinutes = 0);
188 void SelectGameForUser(HWND pWindow);
189 void RefreshGameList(HWND pWindow);
190 void RefreshGameSelection(HWND pWindow);
191 void RefreshUserList(HWND pWindow);
192 void RefreshChatOut(HWND pWindow);
194 void PlayMessageReceivedSound(HWND wnd);
196 static BOOL VerifyError(HWND pParentWindow,
const char *pAnswer);
198 BOOL ParseState(
const char *pAnswer);
201 void AddChatLine(
const char *pText,
bool neverLog=
false);
203 int LoadBanner(HWND pWindow,
const char *pBuffer,
int pBufferLen);
204 int RefreshBanner(HWND pWindow);
206 static void TrackOpenFailMessageBox(HWND parent,
const std::string &name,
const std::string &details);
209 InternetRoom(
const std::string &pMainServer,
bool mustCheckUpdates);
212 RoomListPtr GetRoomList()
const {
return roomList; }
214 BOOL DisplayChatRoom(HWND pParentWindow, NetworkSession *pSession, VideoServices::VideoBuffer *pVideoBuffer, BOOL pShouldRecheckServer);
224 BOOL MR_SendRaceResult(HWND pParentWindow,
const char *pTrack,
225 int pBestLapTime,
int pMajorID,
int pMinorID,
const char *pAlias,
226 unsigned int pTrackSum,
int pHoverModel,
int pTotalTime,
MR_DllDeclare void Close()
Definition: SoundServer.cpp:559
std::shared_ptr< RoomList > RoomListPtr
Definition: RoomList.h:96
MR_TrackAvail
Definition: TrackBundle.h:45
Definition: Announcement.h:24
MR_Int64 timestamp_t
Definition: OS.h:55