renamed to PreAlloc instead of PreMalloc
This commit is contained in:
parent
e79c592464
commit
ecafcad136
@ -8,7 +8,7 @@ namespace hgl
|
||||
{
|
||||
namespace
|
||||
{
|
||||
void PreMalloc(IPAddressStack &ip_stack,ServerSocket *server)
|
||||
void PreAlloc(IPAddressStack &ip_stack,ServerSocket *server)
|
||||
{
|
||||
int count=ip_stack.GetCount();
|
||||
|
||||
@ -28,7 +28,7 @@ namespace hgl
|
||||
if(!server)
|
||||
return;
|
||||
|
||||
PreMalloc(ip_stack,server);
|
||||
PreAlloc(ip_stack,server);
|
||||
}
|
||||
|
||||
bool AcceptThread::Execute()
|
||||
@ -39,7 +39,7 @@ namespace hgl
|
||||
int client_sock;
|
||||
|
||||
if(ip_stack.GetCount()<=0)
|
||||
PreMalloc(ip_stack,server);
|
||||
PreAlloc(ip_stack,server);
|
||||
|
||||
ip_stack.Pop(client_ip);
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include<hgl/network/TCPSocket.h>
|
||||
#include<hgl/type/DataArray.h>
|
||||
#include<hgl/log/LogInfo.h>
|
||||
|
||||
namespace hgl
|
||||
{
|
||||
namespace network
|
||||
|
Loading…
x
Reference in New Issue
Block a user