changing max UDP size again - increasing to 576 - should still be safe
This commit is contained in:
parent
9e9063901e
commit
83d746151a
|
@ -2,7 +2,7 @@ D1X-Rebirth Changelog
|
||||||
|
|
||||||
20101123
|
20101123
|
||||||
--------
|
--------
|
||||||
main/net_udp.h: reducing max buffer size of an UDP packet from 1024 to 512 bytes - should prevent possible turncating, especially when sending obejcts where max size is actually used
|
main/net_udp.h: reducing max buffer size of an UDP packet from 1024 to 576 bytes - should prevent possible turncating, especially when sending obejcts where max size is actually used
|
||||||
|
|
||||||
20101122
|
20101122
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -38,7 +38,7 @@ int net_udp_level_sync();
|
||||||
#define UDP_OBJ_PACKETS_PER_FRAME 1
|
#define UDP_OBJ_PACKETS_PER_FRAME 1
|
||||||
|
|
||||||
// Following are static defines for the buffer size of various packets. IF you change the packets, you must change the size, too.
|
// Following are static defines for the buffer size of various packets. IF you change the packets, you must change the size, too.
|
||||||
#define UPKT_MAX_SIZE 512 // Max size for a packet - just for the buffers
|
#define UPKT_MAX_SIZE 576 // Max size for a packet - just for the buffers
|
||||||
#define UPKT_GAME_INFO_REQ_SIZE 11
|
#define UPKT_GAME_INFO_REQ_SIZE 11
|
||||||
#define UPKT_SEQUENCE_SIZE 14
|
#define UPKT_SEQUENCE_SIZE 14
|
||||||
#define UPKT_PING_SIZE 33
|
#define UPKT_PING_SIZE 33
|
||||||
|
|
Loading…
Reference in a new issue