payload.go 389 B

123456789101112131415
  1. // Copyright 2013 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package ipv6
  5. import "net"
  6. // A payloadHandler represents the IPv6 datagram payload handler.
  7. type payloadHandler struct {
  8. net.PacketConn
  9. rawOpt
  10. }
  11. func (c *payloadHandler) ok() bool { return c != nil && c.PacketConn != nil }