先配置地址再打开微网客户端
This commit is contained in:
parent
732d46e433
commit
0e05373a61
|
@ -38,9 +38,6 @@ void TinyClient::Open()
|
||||||
Control->Received = OnClientReceived;
|
Control->Received = OnClientReceived;
|
||||||
Control->Param = this;
|
Control->Param = this;
|
||||||
|
|
||||||
Control->Mode = 0; // 客户端只接收自己的消息
|
|
||||||
Control->Open();
|
|
||||||
|
|
||||||
TranID = (int)Time.Current();
|
TranID = (int)Time.Current();
|
||||||
|
|
||||||
_TaskID = Sys.AddTask(TinyClientTask, this, 0, 5000, "客户端服务");
|
_TaskID = Sys.AddTask(TinyClientTask, this, 0, 5000, "客户端服务");
|
||||||
|
@ -52,6 +49,9 @@ void TinyClient::Open()
|
||||||
|
|
||||||
Password.Load(Cfg->Password, ArrayLength(Cfg->Password));
|
Password.Load(Cfg->Password, ArrayLength(Cfg->Password));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Control->Mode = 0; // 客户端只接收自己的消息
|
||||||
|
Control->Open();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TinyClient::Close()
|
void TinyClient::Close()
|
||||||
|
|
Loading…
Reference in New Issue