Files
wnmj/Classes/Network/ISocketEngineSink.h

14 lines
446 B
C
Raw Normal View History

2026-02-13 14:34:15 +08:00
#ifndef _ISocketEngineSink_
#define _ISocketEngineSink_
struct ISocketEngineSink
{
virtual ~ISocketEngineSink(){}
virtual void onEventTCPSocketLink() = 0;
virtual void onEventTCPSocketShut() = 0;
virtual void onEventTCPSocketError(int errorCode) = 0;
virtual bool onEventTCPSocketRead(int main, int sub, void* data, int dataSize) = 0;
virtual bool onEventTCPHeartTick(){return true;};
}; // ISocketEngineSink
#endif // _ISocketEngineSink_