Debian Codegraph @

udp_session.go

raw
1 package dns
2
3 import "net"
4
5 // Session is a small strucures that keep track of where the (potential) UDP message came from.
6 type Session struct {
7 Addr *net.UDPAddr // address from [net.ReadMsgUDP]
8 // oob data also returned, this is needed to route to the correct interface.
9 OOB []byte
10 }