MCPcopy Create free account
hub / github.com/pion/ice / WriteTo

Method WriteTo

shared_packet_conn.go:79–85  ·  view source on GitHub ↗
(b []byte, addr net.Addr)

Source from the content-addressed store, hash-verified

77}
78
79func (s *sharedPacketConn) WriteTo(b []byte, addr net.Addr) (int, error) {
80 if s.ctx.Err() != nil {
81 return 0, io.ErrClosedPipe
82 }
83
84 return s.underlying.WriteTo(b, addr)
85}
86
87func (s *sharedPacketConn) LocalAddr() net.Addr {
88 return s.underlying.LocalAddr()

Callers

nothing calls this directly

Calls 1

ErrMethod · 0.45

Tested by

no test coverage detected