Update handle_bnet.cpp
This commit is contained in:
parent
f098dceb5f
commit
be43779622
1 changed files with 14 additions and 0 deletions
|
@ -136,6 +136,7 @@ namespace pvpgn
|
|||
static int _client_adack(t_connection * c, t_packet const *const packet);
|
||||
static int _client_adclick(t_connection * c, t_packet const *const packet);
|
||||
static int _client_adclick2(t_connection * c, t_packet const *const packet);
|
||||
static int _client_readmemory(t_connection * c, t_packet const *const packet);
|
||||
static int _client_statsupdate(t_connection * c, t_packet const *const packet);
|
||||
static int _client_playerinforeq(t_connection * c, t_packet const *const packet);
|
||||
static int _client_progident2(t_connection * c, t_packet const *const packet);
|
||||
|
@ -236,6 +237,7 @@ namespace pvpgn
|
|||
{ CLIENT_ADACK, _client_adack },
|
||||
{ CLIENT_ADCLICK, _client_adclick },
|
||||
{ CLIENT_ADCLICK2, _client_adclick2 },
|
||||
{ CLIENT_READMEMORY, _client_readmemory },
|
||||
{ CLIENT_STATSREQ, _client_statsreq },
|
||||
{ CLIENT_STATSUPDATE, _client_statsupdate },
|
||||
{ CLIENT_PLAYERINFOREQ, _client_playerinforeq },
|
||||
|
@ -3293,6 +3295,18 @@ namespace pvpgn
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int _client_readmemory(t_connection * c, t_packet const *const packet)
|
||||
{
|
||||
if (packet_get_size(packet) < sizeof(t_client_readmemory)) {
|
||||
eventlog(eventlog_level_error, __FUNCTION__, "[%d] got bad READMEMORY packet (expected %lu bytes, got %u)", conn_get_socket(c), sizeof(t_client_readmemory), packet_get_size(packet));
|
||||
return -1;
|
||||
}
|
||||
|
||||
eventlog(eventlog_level_debug, __FUNCTION__, "[%d] Received READMEMORY packet with Request ID: %d and Memory: %d", conn_get_socket(c), bn_int_get(packet->u.client_readmemory.request_id), bn_int_get(packet->u.client_readmemory.memory));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int _client_statsupdate(t_connection * c, t_packet const *const packet)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue