Questions tagged [enet]

ENet provides a relatively thin, simple and robust network communication layer on top of UDP. The primary feature it provides is optional reliable, in-order delivery of packets.

ENet provides a relatively thin, simple and robust network communication layer on top of UDP. The primary feature it provides is optional reliable, in-order delivery of packets.

48 questions
4
votes
2 answers

Networking library compatible C and Java

I'm going to develop a little Android game with multiplayer feature. I've made a server framework in C++ using eNet library and I would like to use this framework for make the server. So, there is any networking library like eNet compatible with…
fabregot
  • 43
  • 3
3
votes
1 answer

Sending a StringStream of Binary Data from Cereal with ENet

I have been working on wrapping ENet into a set of easy to use functions for a few weeks now and seem to have a bit of an issue. I have a std::stringstream and am attempting to send the contents to a remote machine using ENet then reconstruct the…
KKlouzal
  • 732
  • 9
  • 32
3
votes
1 answer

How to link ENet and MSVC

I am using Microsoft Visual C++ (VS Express for Desktop). I'm having difficulty linking the enet.lib and enet64.lib files. Here's what I did: Downloaded the tar.gz file of the most recent stable release. I extracted it's contents to C:\enet In my…
rmaes4
  • 555
  • 9
  • 22
2
votes
1 answer

Client disconnect and receives wrong packet with ENET

I'm trying to develop a simple card game using Allegro and ENET for the multiplayer part. Now, I've found some tutorial online and I came up with a simple code that I'm planning to use for managing the clients/server info exchange during the game.…
2
votes
2 answers

Scalable login/lobby servers for a multiplayer game

I am developing a multiplayer game (client-server model) and I am stuck when it comes to scaling its servers. I understand that most games never even reach 10 000+ players, and I don't think mine will either. Though if I would be very lucky to get…
MrPersson
  • 23
  • 3
2
votes
0 answers

Implementing security over a network layer that doesn't support security

Foreword: I don't really know much about security or encryption or how it works. I am developing a small server for a game that uses ENet, which doesn't support higher level things such as security (e.g. SSL/TLS in the TCP world) to, as I think they…
Mona the Monad
  • 2,265
  • 3
  • 19
  • 30
2
votes
1 answer

What are the suitable options for lightweight RUDP network library for c++ and mono?

It's a long time that I'm prototyping the network libraries for our MMO game which it's back-end is in c++ and the client uses Unity3d. I've used ZeroMQ, It's a very strong and awesome library but it doesn't have an official port for c# with .Net…
Farzam
  • 51
  • 5
2
votes
1 answer

Real-time multiplayer game latency compensation

To be brief, I am working on a real-time multiplayer game. In my game, the clients send updated position and velocity data to the server at a frequency of 20Hz. In the example code below, I am converting data from a Lua table into a C struct using…
Karai17
  • 923
  • 2
  • 9
  • 26
2
votes
1 answer

Optional function argument that is specified as a trait instead of a concrete type

I have been watching Rust for the past few months but I just started into an actual project. I am not sure if the terminology in the title is correct. Please let me know how it can be corrected. I am writing a rust wrapper around the ENet library…
2
votes
1 answer

Make static library for iOS with existing C code in Xcode

Short version of the question: So basically what I'm looking to do is to take an existing library written in C (https://github.com/lsalzman/enet) and turn it into a static library for iOS. I am just looking for an easy to understand step by step of…
2
votes
3 answers

NAT Hole Punching With ENet

I have been searching for a simple UDP C++ library that provides reliability for a while now. I have just come across ENet, which looks perfect, except that I can't find any support for NAT hole punching in the documentation. The internet seems to…
2
votes
2 answers

Sending Vectors over a network connection

I am having a problem with sending vectors across an enet connection because vectors seem to be represented with their own sort of data possibly pointing to where the vectors internal data is actually stored, and I cannot figure out how to access…
Lemon Drop
  • 2,113
  • 2
  • 19
  • 34
2
votes
1 answer

Sending data to a list of ip addresses - c++

Currently I am using enet to stream info, updated multiple times per second, to a list of provided ip addresses / ports. I am creating a client connection for each of these addresses (and there are server enet host connections running on those…
unohoo
  • 378
  • 4
  • 14
2
votes
2 answers

TCP vs Enet for online card game with lobby?

I'm working on an online turn based card game for the PC. It features a lobby which will automatically update the list of active games so I'll be sending many updates to many clients. I will have a game server for this. Lag is not too big a deal…
jmasterx
  • 52,639
  • 96
  • 311
  • 557
1
vote
0 answers

How do I send a struct of data with ENet?

I have looked for ways of doing it but have not found any solution. I need to send a player's coordinates in a game to the server. I got the idea of making a string and splitting it up into pieces of data when recieved but there must be a simpler…
lomstfer
  • 69
  • 7
1
2 3 4