示例#1
0
		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);
		}
示例#2
0
	TcpSessionPtr XAsioTCPServer::createTCPSession()
	{
		return TcpSessionPtr( new XAsioTCPSession( m_controller ) );
	}