Ejemplo n.º 1
0
            public bool CreateConnService(PtServerInfo svrInfo)
            {
                SIConnService connService = new SIConnService(genID, svrInfo);
                bool          result      = connService.Connect();

                if (result == true)
                {
                    m_connServiceDic[connService.ID] = connService;
                }
                return(result);
            }
Ejemplo n.º 2
0
            public bool CreateConnService(string ip, int port)
            {
                SIConnService connService = new SIConnService(genID, ip, port);
                bool          result      = connService.Connect();

                if (result == true)
                {
                    m_connServiceDic[connService.ID] = connService;
                }
                return(result);
            }