Skip to content

Commit

Permalink
using SockSender::send (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
dongdan002 authored Dec 23, 2023
1 parent b8541a0 commit 6a8bdfc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Network/Socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,12 @@ class SocketHelper : public SockSender, public SockInfo, public TaskExecutorInte
Task::Ptr async_first(TaskIn task, bool may_sync = true) override;

///////////////////// SockSender override /////////////////////

/**
* 使能 SockSender 其他未被重写的send重载函数
*/
using SockSender::send;

/**
* 统一发送数据的出口
*/
Expand Down
3 changes: 3 additions & 0 deletions src/Network/TcpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ class TcpClientWithSSL : public TcpClientType {
}
}

// 使能其他未被重写的send函数
using TcpClientType::send;

ssize_t send(Buffer::Ptr buf) override {
if (_ssl_box) {
auto size = buf->size();
Expand Down

0 comments on commit 6a8bdfc

Please sign in to comment.