MCPcopy
hub / github.com/google/gvisor / NewClient

Function NewClient

pkg/urpc/urpc.go:542–546  ·  view source on GitHub ↗

NewClient returns a new client.

(socket *unet.Socket)

Source from the content-addressed store, hash-verified

540
541// NewClient returns a new client.
542func NewClient(socket *unet.Socket) *Client {
543 return &Client{
544 Socket: socket,
545 }
546}
547
548// marshal sends the given FD and json struct.
549func marshal(s *unet.Socket, v any, fs []*os.File) error {

Callers 12

ConnectToFunction · 0.92
TestReadFunction · 0.92
TestReadvFunction · 0.92
TestWriteFunction · 0.92
TestWritevFunction · 0.92
TestClientWatchdogFunction · 0.92
ExecuteMethod · 0.92
testClientFunction · 0.70

Calls

no outgoing calls

Tested by 6

TestReadFunction · 0.74
TestReadvFunction · 0.74
TestWriteFunction · 0.74
TestWritevFunction · 0.74
TestClientWatchdogFunction · 0.74
testClientFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…