Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

24 righe
578 B

  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 (
  6. "net"
  7. "golang.org/x/net/internal/socket"
  8. )
  9. // BUG(mikio): On Windows, the ControlMessage for ReadFrom and WriteTo
  10. // methods of PacketConn is not implemented.
  11. // A payloadHandler represents the IPv6 datagram payload handler.
  12. type payloadHandler struct {
  13. net.PacketConn
  14. *socket.Conn
  15. rawOpt
  16. }
  17. func (c *payloadHandler) ok() bool { return c != nil && c.PacketConn != nil && c.Conn != nil }