Questions tagged [raknet]

Raknet is a cross-platform, open-source C++ networking library aimed at games

RakNet is an open source, cross-platform game networking engine designed for high performance in games.

It provides a number of useful functions that are typically required in networked game development.

  • Object replication
  • Auto-patching of game binaries
  • Lobbies
  • RPC
  • Voice comms
  • NAT tunneling
  • Robust communications protocols
29 questions
8
votes
0 answers

How to use CFStream with RakNet on an iPhone?

I'm trying to create an iPhone app that will run in the background and uses Raknet transfer data between a client and a server. I followed a tutorial to get a simple chat client and server running. I want the app to be notified of incoming data when…
Nathan.Arnold
  • 188
  • 1
  • 7
2
votes
0 answers

How to make a proxy for an existing Raknet Application

I am currently trying to make a proxy for an application that uses the Raknet protocol. I want to to have the ability to receive the client connection, log/manipulate it and send it to the server, but I'm having difficulties replicating the…
Ryan_DS
  • 750
  • 7
  • 28
1
vote
0 answers

C++ to Golang via Swig - Getting 'declared void' error

I'm trying to compile the RakNet game networking C/C++ library for use in Go. I'm currently using swig -c++ -go -cgo -intgosize 64 build.swigxx && go build to convert the project into a Go interface, but I'm running into the following…
JonRB
  • 175
  • 6
1
vote
0 answers

How do I make my struct blittable?

I'm working with RakNet as a C plugin for C#. I was getting by fine receiving packets as char* and casting them as byte and IntPtr as needed, without complex interop being necessary. However, as a quality of life adjustment, I decided I'd be better…
1
vote
1 answer

Using RakNet source with Code::Blocks on Ubuntu

Hey Forum, So i'm trying to find out how to use the source files from RakNet with Code::Blocks, in Ubuntu. All the tutorials on the internet are for windows, or use windows ".lib files". I need to find a way to get this working but I'm getting very…
CoderDake
  • 1,497
  • 2
  • 15
  • 30
1
vote
1 answer

How to make RakNet more reliable?

Here's the summary, I send a packet from a server to a client run on the same computer. For some reason the packet sent is not the same as the packet received. Here's the details: The packet was sent using RakNet with the calling…
Evan Baad
  • 91
  • 5
1
vote
2 answers

Best way to send packet with RakNet

I was wondering how to send packet to client in client-server architecture with RakNet. In this sample code we have this line: peer->Send(&bsOut,HIGH_PRIORITY,RELIABLE_ORDERED,0,packet->systemAddress,false); However, the prototype is the following…
Sproulx
  • 314
  • 3
  • 13
1
vote
0 answers

RakNet AutoRPC vs Packet Implementation

I just wanted to ask which of these is more efficient, in both memory and RAM. I know if one is quick than the other I have really no issue using it for everything, I also don't mind using a mixture. Thanks.
user1591117
  • 287
  • 2
  • 5
  • 13
1
vote
1 answer

How to add Raknet to Cocos2d-x

I try to add Raknet to Cocos2d-x game engine for android games but I don't know how . I couldn't find good tutorial about this integration . I can compile and run both of them separately as well , the problem is integration of them . I think that I…
Alireza Sanaee
  • 465
  • 1
  • 7
  • 21
1
vote
0 answers

RakNet tutorial dropping clients

sorry for the noobish question but I can't find any resources online clearly stating whether this should work or not, and all tutorials / sample code always use localhost ^^ Soooo... I'm trying to setup a simple server / client using RakNet. I'm…
benitosub
  • 123
  • 1
  • 8
1
vote
0 answers

How to do RakNet Keep-Alive

I'm planning my server loop for a simple networked game I want to make. Using RakPeerInterface (which sounds like a reliable UDP implementation from what I've read), I want to be able to tell, within 3 seconds, if a player has disconnected from the…
CodeMinion
  • 653
  • 2
  • 10
  • 24
0
votes
0 answers

Explain this Algorithm: 2 for 1 Prioritization Schedule Using Heap (from RakNet)

Imagine we have a network stack that schedules traffic sends at 4 priority levels [0,3]: Generally, two messages at priority 0 are sent for every one message sent at priority 1. Likewise, two messages at priority 1 are sent for every one message…
Mike
  • 43
  • 1
  • 6
0
votes
0 answers

High CPU Usage for my own consolepplication client

I was building a console application which acts as a client. It connects to the given ip address of server. I am using Raknet in it. One of the problems i noticed is that the program Consoleapplicationxx.exe is taking high CPU usage (as shown by the…
habi
  • 125
  • 8
0
votes
0 answers

Trying to use IPv6 to connect two computers. (RakNet and C++)

So I am having some issues trying to get two computers to connect using IPv6 addresses. I have an application where two users can connect and send packets to each other using IPv4 addresses (same wifi). However, due to the coronavirus we have been…
Voids
  • 19
  • 3
0
votes
1 answer

Localhost UDP client not receiving packets from UDP proxy

I have a proxy that acts between a Minecraft (Windows 10 Edition) client and a server, the protocol is UDP. The client broadcasts an unconnected ping, then server replies with an unconnected pong, everything with that is okay. The thing is when the…
xBeastMode
  • 29
  • 1
  • 7
1
2