start working on the dns resolver

This commit is contained in:
2026-03-14 12:24:51 +01:00
parent 3f9df4a32f
commit 9f4c494e09
4 changed files with 110 additions and 10 deletions

View File

@@ -7,8 +7,8 @@ func main[] : i64
while true
let pkt: net.UDPPacket = net.udp_receive(s, 60000)
if pkt->size <= 0
net.udp_free_packet(pkt)
net.UDPPacket.free(pkt)
continue
net.udp_send_to(s, pkt->source_addr, pkt->buffer, pkt->size)
net.udp_free_packet(pkt)
net.UDPPacket.free(pkt)