diff options
author | Anatole Denis <natolumin@unverle.fr> | 2019-10-01 13:54:35 +0200 |
---|---|---|
committer | Anatole Denis <natolumin@unverle.fr> | 2019-10-01 15:16:41 +0200 |
commit | c378e705e94364c766d04a164d2ce38dc29cc7e5 (patch) | |
tree | 2ee45342fd3b22272bd78a5445409558e4780705 /iana | |
parent | f4eaaf1f283fe3dc826012a75e7ba0dc4ddc4c1e (diff) |
server{4,6}: Return UDPConn from NewIPv*UDPConn
The concrete type under the interface is known here since we create the
connection in the same function. Since *net.UDPConn implements
net.PacketConn anyway, returning the concrete type here is more powerful
and less risky than having downstream users cast the value themselves
There should be no code change for downstream users, with the exception
of explicit casts (`udpc := conn.(*net.UDPConn)`), which can simply be
removed
Signed-off-by: Anatole Denis <natolumin@unverle.fr>
Diffstat (limited to 'iana')
0 files changed, 0 insertions, 0 deletions