MCPcopy
hub / github.com/hashicorp/memberlist / SendTo

Method SendTo

memberlist.go:557–560  ·  view source on GitHub ↗

Deprecated: SendTo is deprecated in favor of SendBestEffort, which requires a node to target. If you don't have a node then use SendToAddress.

(to net.Addr, msg []byte)

Source from the content-addressed store, hash-verified

555// Deprecated: SendTo is deprecated in favor of SendBestEffort, which requires a node to
556// target. If you don't have a node then use SendToAddress.
557func (m *Memberlist) SendTo(to net.Addr, msg []byte) error {
558 a := Address{Addr: to.String(), Name: ""}
559 return m.SendToAddress(a, msg)
560}
561
562func (m *Memberlist) SendToAddress(a Address, msg []byte) error {
563 // Encode as a user message

Callers 1

TestTransport_SendFunction · 0.80

Calls 2

SendToAddressMethod · 0.95
StringMethod · 0.45

Tested by 1

TestTransport_SendFunction · 0.64