MCPcopy
hub / github.com/txthinking/brook / Close

Method Close

quic.go:131–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func (c *QUICConn) Close() error {
132 if c.Stream != nil {
133 c.Stream.CancelRead(0)
134 c.Stream.Close()
135 }
136 if c.Conn != nil {
137 c.Conn.CloseWithError(0, "close")
138 }
139 if c.UDPConn != nil {
140 c.UDPConn.Close()
141 }
142 return nil
143}
144
145func (c *QUICConn) LocalAddr() net.Addr {
146 return c.LAddr

Callers 15

ListenAndServeMethod · 0.45
TCPHandleMethod · 0.45
UDPOverTCPHandleMethod · 0.45
UDPHandleMethod · 0.45
ListenAndServeMethod · 0.45
ShutdownMethod · 0.45
TCPHandleMethod · 0.45
UDPHandleMethod · 0.45
ExchangeMethod · 0.45
TCPHandleMethod · 0.45
UDPHandleMethod · 0.45
QUICDialUDPFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected