This commit is contained in:
azw 2023-04-24 11:42:36 +00:00
parent 0ec8f9133b
commit 809297d9a6
2 changed files with 6 additions and 6 deletions

View File

@ -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)
{
KcpSession* session = (KcpSession*)user;
a8::UdpPacket* pkt = new a8::UdpPacket();
pkt->buf = buf;
pkt->buf_len = len;
pkt->remote_addr = session->GetAddr();
LongSessionMgr::Instance()->GetUdpListener()->SendUdpPacket(pkt);
a8::UdpPacket pkt;
pkt.buf = buf;
pkt.buf_len = len;
pkt.remote_addr = session->GetAddr();
LongSessionMgr::Instance()->GetUdpListener()->SendUdpPacket(&pkt);
return 0;
}

2
third_party/a8 vendored

@ -1 +1 @@
Subproject commit 2444f1b8e2311d0d5664df5282873fa55e294291
Subproject commit 4fb98b218b1f30f57bfe63a41f8fcd6d1778fc99