Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [packet]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
74 views

Requesting World from Server

I'm creating a 2D Game in Java. The world is tile based with a multidimensional Array and i have the architecture for the Server-Client system. The Users/Connections to the Clients are multithreaded ...
0
votes
0answers
57 views

When doing network programming, is it always a good idea to optimize packet size as much as possible?

My question is relatively straightforward, but I haven't been able to find a concrete answer yet. I'm programming a real-time networked multiplayer game, and I'm finding many examples of places where ...
0
votes
1answer
86 views

Is it bad practice to for the server to request data for a client from another client?

I'm making a collaborative whiteboard app so that when someone is drawing and uses a rectangle for example, a rectangle packet is sent to the server with parameters like ...
-1
votes
2answers
455 views

Better to send multiple small packets or one large packet?

I'm developing a network game with node.js and I have the choice between these three options: 1) Send each point individually (very user responsive) 2) Send an update every 25 points or so (decent ...
1
vote
2answers
749 views

Game networking, limiting amount of movement packets

I have been developing a server/client model for a game project I am working on. Everything works great, client side prediction works, server reconciliation works. Basically, the character can move ...
1
vote
0answers
102 views

Casting every received packet as struct?

What is the best performant solution to handle received data from socket, in a MMORPG game? Is it good to have something like: ...
1
vote
0answers
49 views

Ensure packet owner from connection is the authentic user [duplicate]

In a multiplayer game, how can you be sure that the IP from a packet is the real IP? By spoofing I could send, for example, a "suicide packet" which tells the server that the owner of said packet ...
0
votes
2answers
276 views

How can I escape my field delimiter in my game's packet data?

For my game I decided to not encrypt my packet's payload. Instead I'm just going to check everything on the server to make sure the packet is legitimate. As I'm not doing any encryption, my packet's ...
2
votes
1answer
642 views

Is it important for reflection-based serialization maintain consistent field ordering?

I just finished writing a packet builder that dynamically loads data into a data stream for eventual network transmission. Each builder operates by finding fields in a given class (and its ...
6
votes
1answer
423 views

Game Networking Update Packets

So, I've been working on a project for a while which is basically just a little 2D game. The fun/hard part is that I've been trying to make it work as a multiplayer game. Right now, the game is just a ...
2
votes
2answers
3k views

Packet handling system architecture?

I'm working on a multiplayer Flash game (ActionScript 3) with an accompanying server written in Python and I'd like some tips regarding networking, and specifically, the handling of packets and ...
1
vote
2answers
3k views

Networking Client Server Packet logic (How they communicate)

I want to know what is the logic behind server client communication through packets for a real time game. for example the server sends x packets then the client receives x packets and processes them.. ...
2
votes
2answers
4k views

Client-Server RTS networking with lockstep and lag

The peer to peer lockstep networking model would seem to indicate that everyone's input is delayed the same amount. And so this would indicate that everyone would feel the same lag in response to ...
6
votes
3answers
2k views

Networking for RTS games with lockstep using UDP

Apparently from what I can gather Starcraft 2 moved to UDP in a patch. Now obviously with fps games there is no dispute that UDP is the only way to go. But with RTS games what benefits does UDP give ...
4
votes
2answers
3k views

Elegant way to handle packet loss in a lockstep P2P RTS?

What's an elegant way to handle packet loss in a lockstep simulation peer-to-peer RTS where only player input data is sent over the network? For example, let's say it's tick 1000 and player 1 sends a ...
9
votes
4answers
447 views

Can packet latency fluctuate?

Can the time it takes for a packet to be transmitted from a client to the server fluctuate?