- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for ReadWriteCloser (0.56 sec)
-
src/net/textproto/textproto.go
// These embedded types carry methods with them; // see the documentation of those types for details. type Conn struct { Reader Writer Pipeline conn io.ReadWriteCloser } // NewConn returns a new [Conn] using conn for I/O. func NewConn(conn io.ReadWriteCloser) *Conn { return &Conn{ Reader: Reader{R: bufio.NewReader(conn)}, Writer: Writer{W: bufio.NewWriter(conn)}, conn: conn, } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.7K bytes - Viewed (0) -
src/net/rpc/jsonrpc/client.go
mutex sync.Mutex // protects pending pending map[uint64]string // map request id to method name } // NewClientCodec returns a new [rpc.ClientCodec] using JSON-RPC on conn. func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec { return &clientCodec{ dec: json.NewDecoder(conn), enc: json.NewEncoder(conn), c: conn, pending: make(map[uint64]string), } } type clientRequest struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3K bytes - Viewed (0) -
src/net/rpc/jsonrpc/server.go
mutex sync.Mutex // protects seq, pending seq uint64 pending map[uint64]*json.RawMessage } // NewServerCodec returns a new [rpc.ServerCodec] using JSON-RPC on conn. func NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec { return &serverCodec{ dec: json.NewDecoder(conn), enc: json.NewEncoder(conn), c: conn, pending: make(map[uint64]*json.RawMessage), } } type serverRequest struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.2K bytes - Viewed (0) -
test/fixedbugs/issue6977.go
type IJ1 = interface { I; J } type IJ2 = interface { f(); g(); String() string } var _ = (*IJ1)(nil) == (*IJ2)(nil) // static assert that IJ1 and IJ2 are identical types // The canonical example. type ReadWriteCloser interface { io.ReadCloser; io.WriteCloser } // Some more cases. type M interface { m() } type M32 interface { m() int32 } type M64 interface { m() int64 } type U1 interface { m() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 03 20:30:02 UTC 2020 - 1.1K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue6977.go
type IJ1 = interface { I; J } type IJ2 = interface { f(); g(); String() string } var _ = (*IJ1)(nil) == (*IJ2)(nil) // static assert that IJ1 and IJ2 are identical types // The canonical example. type ReadWriteCloser interface { io.ReadCloser; io.WriteCloser } // Some more cases. type M interface { m() } type M32 interface { m() int32 } type M64 interface { m() int64 } type U1 interface { m() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:04:33 UTC 2024 - 2.6K bytes - Viewed (0) -
src/net/http/fcgi/fcgi.go
} // conn sends records over rwc type conn struct { mutex sync.Mutex rwc io.ReadWriteCloser closeErr error closed bool // to avoid allocations buf bytes.Buffer h header } func newConn(rwc io.ReadWriteCloser) *conn { return &conn{rwc: rwc} } // Close closes the conn if it is not already closed. func (c *conn) Close() error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 11 18:51:39 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/kubelet/server/server_websocket_test.go
if test.uid { assert.Equal(t, testUID, string(uid), "uid") } } ss.fakeRuntime.portForwardFunc = func(podSandboxID string, port int32, stream io.ReadWriteCloser) error { defer close(portForwardFuncDone) assert.Equal(t, testPodSandboxID, podSandboxID, "pod sandbox id") // The port should be valid if it reaches here. testPort, err := strconv.ParseInt(test.port, 10, 32)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 06:08:18 UTC 2023 - 8.2K bytes - Viewed (0) -
src/net/rpc/client.go
// so no interlocking is required. However each half may be accessed // concurrently so the implementation of conn should protect against // concurrent reads or concurrent writes. func NewClient(conn io.ReadWriteCloser) *Client { encBuf := bufio.NewWriter(conn) client := &gobClientCodec{conn, gob.NewDecoder(conn), gob.NewEncoder(encBuf), encBuf} return NewClientWithCodec(client) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 9K bytes - Viewed (0) -
pkg/hbone/dialer.go
} return c, nil } func (d dialer) Dial(network, address string) (c net.Conn, err error) { return d.DialContext(context.Background(), network, address) } func (d *dialer) proxyTo(conn io.ReadWriteCloser, req Config, address string) error { t0 := time.Now() url := "http://" + req.ProxyAddress if req.TLS != nil { url = "https://" + req.ProxyAddress }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 15:56:41 UTC 2023 - 5.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go
// Open the connection and create channels for reading and writing. It returns // the selected subprotocol, a slice of channels and an error. func (conn *Conn) Open(w http.ResponseWriter, req *http.Request) (string, []io.ReadWriteCloser, error) { // serveHTTPComplete is channel that is closed/selected when "websocket#ServeHTTP" finishes. serveHTTPComplete := make(chan struct{}) // Ensure panic in spawned goroutine is propagated into the parent goroutine.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:10:30 UTC 2024 - 14.5K bytes - Viewed (0)