debug epoll action on linux.

This commit is contained in:
caozhiyi
2021-05-28 10:03:31 +08:00
parent 0d6446046c
commit 85c3bd506a
8 changed files with 17 additions and 24 deletions

View File

@@ -131,9 +131,9 @@ void CppNetBase::OnAccept(std::shared_ptr<RWSocket> sock) {
}
}
void CppNetBase::OnRead(std::shared_ptr<RWSocket> sock, uint32_t len) {
void CppNetBase::OnRead(std::shared_ptr<RWSocket> sock, std::shared_ptr<Buffer> buffer, uint32_t len) {
if (_read_cb) {
_read_cb(sock, sock->GetReadBuffer(), len);
_read_cb(sock, buffer, len);
}
}