mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-16 19:10:54 +08:00
更新ZLToolKit
This commit is contained in:
@@ -36,7 +36,7 @@ protected:
|
||||
}
|
||||
//tcp连接成功后每2秒触发一次该事件
|
||||
void onManager() override {
|
||||
send("echo test!");
|
||||
SockSender::send("echo test!");
|
||||
DebugL << "send echo test";
|
||||
}
|
||||
//连接服务器结果回调
|
||||
|
||||
@@ -35,7 +35,7 @@ public:
|
||||
}
|
||||
void onRecv(const Buffer::Ptr &buffer) override {
|
||||
//回显数据
|
||||
send("from EchoSession:");
|
||||
SockSender::send("from EchoSession:");
|
||||
send(buffer);
|
||||
}
|
||||
void onError(const SockException &err) override{
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
}
|
||||
void onRecv(const Buffer::Ptr &buffer) override {
|
||||
//回显数据
|
||||
send("from EchoSessionWithUrl:");
|
||||
SockSender::send("from EchoSessionWithUrl:");
|
||||
send(buffer);
|
||||
}
|
||||
void onError(const SockException &err) override{
|
||||
|
||||
Reference in New Issue
Block a user