(p []byte, addr net.Addr)
| 92 | } |
| 93 | |
| 94 | func (c *PacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error) { |
| 95 | n, err = c.PacketConn.WriteTo(p, addr) |
| 96 | if n > 0 { |
| 97 | prometheus.IncrementBytes("", prometheus.Outgoing, uint64(n), false) |
| 98 | prometheus.IncrementPackets("", prometheus.Outgoing, 1, false) |
| 99 | } |
| 100 | return |
| 101 | } |
| 102 | |
| 103 | func (c *PacketConn) Close() error { |
| 104 | prometheus.SubConnection(c.direction) |
no test coverage detected