Hi Andrej. Two things:
- In order to create a gonet.UDPConn that sends data over a socket, the socket has to be manually created (and then used to create an NIC in the netstack that gonet is using). Do you not have access to that socket?
- UDPConn (and TCPConn) lack a function for this because they aren't always based on sockets. They could work over a unix pipe, Go channel, or any other transport. You could maybe embed UDPConn in your own type that's capable of remembering the socket FD used to initialize it.
Kevin