MCPcopy Create free account
hub / github.com/CPChain/chain / DialStdIO

Function DialStdIO

api/rpc/client.go:217–221  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

215 return &net.OpError{Op: "set", Net: "stdio", Source: nil, Addr: nil, Err: errors.New("deadline not supported")}
216}
217func DialStdIO(ctx context.Context) (*Client, error) {
218 return newClient(ctx, func(_ context.Context) (net.Conn, error) {
219 return StdIOConn{}, nil
220 })
221}
222
223func newClient(initctx context.Context, connectFunc func(context.Context) (net.Conn, error)) (*Client, error) {
224 conn, err := connectFunc(initctx)

Callers 1

DialContextFunction · 0.85

Calls 1

newClientFunction · 0.85

Tested by

no test coverage detected