This commit is contained in:
aozhiwei 2023-04-23 18:54:26 +08:00
parent 399e2a8f98
commit e24aab092d
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ namespace a8
} }
} }
void UdpSession::Update() void UdpSession::Update(long long tick)
{ {
} }

View File

@ -8,6 +8,7 @@
namespace a8 namespace a8
{ {
struct UdpPacket;
class UdpListener; class UdpListener;
class UdpSession class UdpSession
{ {
@ -16,9 +17,9 @@ namespace a8
UdpSession(); UdpSession();
~UdpSession(); ~UdpSession();
void Update(); virtual void Update(long long tick);
void SetMaxPacketLen(int max_packet_len); void SetMaxPacketLen(int max_packet_len);
virtual void OnRecvPacket() = 0; virtual void OnRecvPacket(a8::UdpPacket* pkt) = 0;
virtual void SendClientMsg(char* buf, int buf_len) = 0; virtual void SendClientMsg(char* buf, int buf_len) = 0;
protected: protected: