File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,21 @@ import (
66 "gvisor.dev/gvisor/pkg/tcpip/stack"
77)
88
9- // TCPConn implements the net.Conn interface.
9+ // TCPConn represents a TCP connection that implements net.Conn
10+ // and exposes its stack.TransportEndpointID.
1011type TCPConn interface {
1112 net.Conn
1213
13- // ID returns the transport endpoint id of TCPConn .
14+ // ID returns the transport endpoint id.
1415 ID () stack.TransportEndpointID
1516}
1617
17- // UDPConn implements net.Conn and net.PacketConn.
18+ // UDPConn represents a UDP connection that implements both net.Conn
19+ // and net.PacketConn and exposes its stack.TransportEndpointID.
1820type UDPConn interface {
1921 net.Conn
2022 net.PacketConn
2123
22- // ID returns the transport endpoint id of UDPConn .
24+ // ID returns the transport endpoint id.
2325 ID () stack.TransportEndpointID
2426}
You can’t perform that action at this time.
0 commit comments