1 (edited by Fish013 2011-09-10 12:23:28)

Topic: Network Protocol Question - packet loss and lag.

Hi everyone,

A little coding question about network stuff.
If i send a NETMSG / NETEVENT to a client and the client has some lag or packet loss,
do i have to take care of resending, does the tcp/ip protocol do it for me or does maybe even teeworlds-engine resend the packet?
Would be nice to know if a NETEVENT i send really arrives at a client.

Fishy

2

Re: Network Protocol Question - packet loss and lag.

The teeworlds-engine is resending lost packets. The UDP protocol doesn't take care about packet loss.
Correct me if I'm wrong

3

Re: Network Protocol Question - packet loss and lag.

Packets are resent only if marked vital.

4

Re: Network Protocol Question - packet loss and lag.

m!nus wrote:

Packets are resent only if marked vital.

Thx.
What means if they are marked FLUSH?

5 (edited by east 2011-09-10 16:26:05)

Re: Network Protocol Question - packet loss and lag.

The network buffer will be flushed out (sent) without waiting for further data.

6

Re: Network Protocol Question - packet loss and lag.

k
thx for your help.