Lacewing::EventPump pump;
Lacewing::Client* client = new Lacewing::Client(pump);
client->Tag = this;
client->onReceive(onReceiveEx);
client->onConnect(onConnectEx);
Lacewing::Address adb("127.0.0.1",12581,Lacewing::Address.HINT_IPv4);
client->Connect(adb);
pump.StartEventLoop();
代码如上,连接成功后onConnectEx会自动调用,但是当服务器发数据到client时,onReceiveEx却不有调用,貌似client没有接收到服务器发过来的数据。