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

Function DialIPC

api/rpc/ipc.go:48–52  ·  view source on GitHub ↗

DialIPC create a new IPC client that connects to the given endpoint. On Unix it assumes the endpoint is the full path to a unix socket, and Windows the endpoint is an identifier for a named pipe. The context is used for the initial connection establishment. It does not affect subsequent interaction

(ctx context.Context, endpoint string)

Source from the content-addressed store, hash-verified

46// The context is used for the initial connection establishment. It does not
47// affect subsequent interactions with the client.
48func DialIPC(ctx context.Context, endpoint string) (*Client, error) {
49 return newClient(ctx, func(ctx context.Context) (net.Conn, error) {
50 return newIPCConnection(ctx, endpoint)
51 })
52}

Callers 1

DialContextFunction · 0.85

Calls 2

newClientFunction · 0.85
newIPCConnectionFunction · 0.70

Tested by

no test coverage detected