1
This commit is contained in:
parent
0ec8f9133b
commit
809297d9a6
@ -14,11 +14,11 @@ static const int DEFAULT_MAX_RECV_BUFFERSIZE = 1024 * 64;
|
|||||||
static int UdpOutput(const char *buf, int len, ikcpcb *kcp, void *user)
|
static int UdpOutput(const char *buf, int len, ikcpcb *kcp, void *user)
|
||||||
{
|
{
|
||||||
KcpSession* session = (KcpSession*)user;
|
KcpSession* session = (KcpSession*)user;
|
||||||
a8::UdpPacket* pkt = new a8::UdpPacket();
|
a8::UdpPacket pkt;
|
||||||
pkt->buf = buf;
|
pkt.buf = buf;
|
||||||
pkt->buf_len = len;
|
pkt.buf_len = len;
|
||||||
pkt->remote_addr = session->GetAddr();
|
pkt.remote_addr = session->GetAddr();
|
||||||
LongSessionMgr::Instance()->GetUdpListener()->SendUdpPacket(pkt);
|
LongSessionMgr::Instance()->GetUdpListener()->SendUdpPacket(&pkt);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
third_party/a8
vendored
2
third_party/a8
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 2444f1b8e2311d0d5664df5282873fa55e294291
|
Subproject commit 4fb98b218b1f30f57bfe63a41f8fcd6d1778fc99
|
Loading…
x
Reference in New Issue
Block a user