예제 #1
0
        //============================================================
        // <T>增加网络端口。</T>
        //============================================================
        public void SocketPush(FSocket socket)
        {
            FApplicationInfo info         = RScoutManager.InfoConsole.CreateInfo();
            FNetDataThread   socketThread = new FNetDataThread();

            socketThread._service         = this;
            socketThread._applicationInfo = info;
            socketThread.Socket           = socket;
            socketThread.Start();
            _socketThreads.Push(socketThread);
        }
예제 #2
0
 //============================================================
 // <T>移除端口线程。</T>
 //============================================================
 public void SocketThreadRemove(FNetDataThread thread)
 {
     _socketThreads.Remove(thread);
 }