Follow up r15609, fixed gcc warnings
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15610 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
930048790b
commit
6a2e86ce84
@ -220,7 +220,7 @@ int naddr_ = 0; // # of ip addresses
|
|||||||
// Maximum packet size in bytes, which the client is able to handle.
|
// Maximum packet size in bytes, which the client is able to handle.
|
||||||
// Larger packets cause a buffer overflow and stack corruption.
|
// Larger packets cause a buffer overflow and stack corruption.
|
||||||
// TODO: This value is based on pure observation with newer clients. Replace with the actual buffer size if we ever get our hands on it.
|
// TODO: This value is based on pure observation with newer clients. Replace with the actual buffer size if we ever get our hands on it.
|
||||||
static size_t socket_max_client_packet = 8192;
|
size_t socket_max_client_packet = 8192;
|
||||||
|
|
||||||
// initial recv buffer size (this will also be the max. size)
|
// initial recv buffer size (this will also be the max. size)
|
||||||
// biggest known packet: S 0153 <len>.w <emblem data>.?B -> 24x24 256 color .bmp (0153 + len.w + 1618/1654/1756 bytes)
|
// biggest known packet: S 0153 <len>.w <emblem data>.?B -> 24x24 256 color .bmp (0153 + len.w + 1618/1654/1756 bytes)
|
||||||
|
@ -94,7 +94,7 @@ struct socket_data
|
|||||||
void* session_data; // stores application-specific data related to the session
|
void* session_data; // stores application-specific data related to the session
|
||||||
};
|
};
|
||||||
|
|
||||||
static size_t socket_max_client_packet;
|
extern size_t socket_max_client_packet;
|
||||||
|
|
||||||
// Data prototype declaration
|
// Data prototype declaration
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user