MCPcopy
hub / github.com/golang/net / synctestNetConn

Struct synctestNetConn

http2/netconn_test.go:105–116  ·  view source on GitHub ↗

A synctestNetConn is one endpoint of the connection created by synctestNetPipe.

Source from the content-addressed store, hash-verified

103
104// A synctestNetConn is one endpoint of the connection created by synctestNetPipe.
105type synctestNetConn struct {
106 // local and remote connection halves.
107 // Each half contains a buffer.
108 // Reads pull from the local buffer, and writes push to the remote buffer.
109 loc, rem *synctestNetConnHalf
110
111 // When set, group.Wait is automatically called before reads and after writes.
112 autoWait bool
113
114 // peer is the other endpoint.
115 peer *synctestNetConn
116}
117
118// Read reads data from the connection.
119func (c *synctestNetConn) Read(b []byte) (n int, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected