1
This commit is contained in:
parent
399e2a8f98
commit
e24aab092d
@ -25,7 +25,7 @@ namespace a8
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UdpSession::Update()
|
void UdpSession::Update(long long tick)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user