MCPcopy
hub / github.com/grpc/grpc-go / SendMsg

Method SendMsg

internal/resolver/config_selector.go:95–95  ·  view source on GitHub ↗

SendMsg is generally called by generated code. On error, SendMsg aborts the stream. If the error was generated by the client, the status is returned directly; otherwise, io.EOF is returned and the status of the stream may be discovered using RecvMsg. SendMsg blocks until: - There is sufficient flow

(m any)

Source from the content-addressed store, hash-verified

93 // to call SendMsg on the same stream in different goroutines. It is also
94 // not safe to call CloseSend concurrently with SendMsg.
95 SendMsg(m any) error
96 // RecvMsg blocks until it receives a message into m or the stream is
97 // done. It returns io.EOF when the stream completes successfully. On
98 // any other error, the stream is aborted and the error contains the RPC

Callers 5

GetAllGaugesMethod · 0.65
StreamingOutputCallMethod · 0.65
StreamingFromServerMethod · 0.65
SendMethod · 0.65
SendMethod · 0.65

Implementers 3

clientStreamstream.go
okStreaminternal/xds/httpfilter/fault/fault.go

Calls

no outgoing calls

Tested by 1

SendMethod · 0.52