JMEngine::net::TcpSessionPtr TcpSession::create( NetHandler* net_handler, size_t n_buff_size, size_t reconnect /*= 0*/ ) { void* m = nedalloc::nedmalloc(sizeof(TcpSession)); return TcpSessionPtr(new(m) TcpSession(net_handler, n_buff_size, reconnect),destory); }
TcpSessionPtr XAsioTCPServer::createTCPSession() { return TcpSessionPtr( new XAsioTCPSession( m_controller ) ); }