(b []byte, addr net.Addr)
| 77 | } |
| 78 | |
| 79 | func (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 | |
| 87 | func (s *sharedPacketConn) LocalAddr() net.Addr { |
| 88 | return s.underlying.LocalAddr() |