//============================================================ // <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); }
//============================================================ // <T>移除端口线程。</T> //============================================================ public void SocketThreadRemove(FNetDataThread thread) { _socketThreads.Remove(thread); }