mirror of
https://github.com/caozhiyi/CppNet.git
synced 2026-01-19 00:05:14 +08:00
16 lines
482 B
C++
16 lines
482 B
C++
#ifndef HEADER_NET_CALLBACKHANDLE
|
|
#define HEADER_NET_CALLBACKHANDLE
|
|
|
|
#include "PoolSharedPtr.h"
|
|
|
|
namespace cppnet {
|
|
class CEventHandler;
|
|
class CSocketImpl;
|
|
struct CallBackHandle {
|
|
std::function<void(base::CMemSharePtr<CSocketImpl>&, uint32_t)> _accept_call_back;
|
|
std::function<void(base::CMemSharePtr<CEventHandler>&, uint32_t)> _read_call_back;
|
|
std::function<void(base::CMemSharePtr<CEventHandler>&, uint32_t)> _write_call_back;
|
|
};
|
|
}
|
|
|
|
#endif |