RakNet wrapper for Blitz (open source project)

Miscellaneous Forums/Blitz Showcase/RakNet wrapper for Blitz (open source project)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Seems that UNASSIGNED_SYSTEM_ADDRESS is not returning a systemaddress.

A quick fix to send a broadcast message :-

add this to raknet.cpp
RN_API bool RN2_API RN_SendBitStreamBroadcast(RakPeerInterface *rakPeerInterface,RakNet::BitStream *bitStream,int priority,int reliability,int orderingChannel)
{
	return rakPeerInterface->Send(bitStream,PacketPriority(priority),PacketReliability(reliability),orderingChannel,UNASSIGNED_SYSTEM_ADDRESS,1);
}




and this to raknet.bmx - then recompile the mod

Function RN_SendBitStreamBroadcast%(rakPeerInterface%,bitStream%,priority%,reliability%,orderingChannel%) = "RN_SendBitStreamBroadcast"


Use RN_SendBitStreamBroadcast() instead of RN_SendBitStream()