func (this *TcpServer) Init() { this.hSocket = nil this.port = 0 this.socketTimeout = 0 this.packageBufferSize = 0 this.packageMaxSize = 0 this.delegate = nil this.beNotifiedToShutDown = false this.waitSelfToShutDownChannel = make(chan bool) this.initClientsInfoMap() this.listenThread = basicThread.Create() this.listenThread.Init() this.handleThreads = array.Create() this.handleThreads.Init() }
func (this *ThreadPool) Init() { this.threadArray = array.Create() this.shouldDaemonChannelQuit = make(chan bool) this.isDaemonMode = false this.threadPoolCallBack = nil }