17 #if _RAKNET_SUPPORT_RelayPlugin==1
24 using namespace SLNet;
39 for (
unsigned int i=0; i < itemList.
Size(); i++)
55 StrAndGuidAndRoom *strAndGuidExisting;
62 StrAndGuidAndRoom *strAndGuid = SLNet::OP_NEW<StrAndGuidAndRoom>(
_FILE_AND_LINE_);
63 strAndGuid->guid=guid;
73 StrAndGuidAndRoom *strAndGuid;
109 bsOut.
Write(orderingChannel);
111 bsOut.
Write(bitStream);
112 SendUnified(&bsOut, priority, reliability, orderingChannel, relayPluginServerGuid,
false);
121 bsOut.
Write(orderingChannel);
122 bsOut.
Write(bitStream);
123 SendUnified(&bsOut, priority, reliability, orderingChannel, relayPluginServerGuid,
false);
143 switch (packet->
data[1])
151 char orderingChannel;
157 bsIn.Read(orderingChannel);
159 bsIn.ReadCompressed(key);
164 if (strAndGuid && strAndGuidSender)
172 SendUnified(&bsOut, priority, reliability, orderingChannel, (*strAndGuid)->guid,
false);
183 bsIn.ReadCompressed(key);
229 (void) lostConnectionReason;
230 (void) systemAddress;
237 if (strAndGuidSender==0)
242 sag.guid=(*strAndGuidSender)->guid;
243 sag.str=(*strAndGuidSender)->str;
246 (*strAndGuidSender)->currentRoom=room->roomName;
261 if (strAndGuidSender)
266 if ((*strAndGuidSender)->currentRoom==roomName)
269 if ((*strAndGuidSender)->currentRoom.IsEmpty()==
false)
272 RakString userName = (*strAndGuidSender)->str;
285 room->roomName=roomName;
294 if (strAndGuidSender==0)
297 RakString userName = (*strAndGuidSender)->str;
300 if (
chatRooms[i]->roomName==(*strAndGuidSender)->currentRoom)
302 (*strAndGuidSender)->currentRoom.
Clear();
305 for (
unsigned int j=0; j < room->usersInRoom.Size(); j++)
307 if (room->usersInRoom[j].guid==(*strAndGuidSender)->guid)
311 if (room->usersInRoom.Size()==0)
329 for (
unsigned int i=0; i < room->usersInRoom.Size(); i++)
341 if ((*strAndGuidSender)->currentRoom.IsEmpty())
346 if (
chatRooms[i]->roomName==(*strAndGuidSender)->currentRoom)
354 bsOut.
Write(message);
357 for (
unsigned int j=0; j < room->usersInRoom.Size(); j++)
359 if (room->usersInRoom[j].guid!=(*strAndGuidSender)->guid)
387 char orderingChannel;
393 bsIn.Read(orderingChannel);
398 if (strAndGuidSender)
408 bsIn.ReadCompressed(groupName);
434 if (strAndGuidSender)
437 #endif // _RAKNET_SUPPORT_*