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

Method Write

quic.go:121–129  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

119}
120
121func (c *QUICConn) Write(b []byte) (int, error) {
122 if c.Stream != nil {
123 return c.Stream.Write(b)
124 }
125 if err := c.Conn.SendDatagram(b); err != nil {
126 return 0, err
127 }
128 return len(b), nil
129}
130
131func (c *QUICConn) Close() error {
132 if c.Stream != nil {

Callers 15

dohserver.goFile · 0.45
ServeHTTPMethod · 0.45
TCPHandleMethod · 0.45
ServeHTTPMethod · 0.45
ExchangeMethod · 0.45
ExchangeMethod · 0.45
ExchangeMethod · 0.45
TCPHandleMethod · 0.45
UDPHandleMethod · 0.45
Socks5TestFunction · 0.45
HandleMethod · 0.45
ExchangeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected