private void InitArgsPool() { _argsPool = new SaeaAwaitablePool(); _argsPool.SetInitPoolSize(128); _argsPool.SetMaxPoolSize(UDP_HANDLER_NUM); _argsPool.SetEachBufSize(UDPPacketLen); _argsPool.FinishConfig(); }
private void InitArgsPool() { _argsPool = new SaeaAwaitablePool(); _argsPool.SetInitPoolSize(512); _argsPool.SetMaxPoolSize(MAX_HANDLER_NUM); _argsPool.SetEachBufSize(RecvSize); _argsPool.FinishConfig(); }
private void InitArgsPool() { //accept args pool don't need buffer _acceptArgsPool = new SaeaAwaitablePool(); _acceptArgsPool.SetInitPoolSize(256); _acceptArgsPool.SetMaxPoolSize(BACKLOG); _acceptArgsPool.SetNoSetBuffer(); _acceptArgsPool.FinishConfig(); // first packet handling pool _argsPool = new SaeaAwaitablePool(); _argsPool.SetInitPoolSize(256); _argsPool.SetMaxPoolSize(TCPRelay.MAX_HANDLER_NUM); _argsPool.SetEachBufSize(MaxFirstPacketLen); _argsPool.FinishConfig(); }