/// <summary> /// 清理网络模块 /// </summary> public void Uninitialize() { m_client.Close(); m_client = null; }
/// <summary> /// 初始化网络模块 /// </summary> /// <param name="_stream_id">stream 编号</param> /// <returns></returns> public bool Initialize(Int32 _stream_id) { m_client = new TcpClient(_stream_id); m_client.eventPacketArrived += _onPacketArrived; return(true); }