Skip to content

Instantly share code, notes, and snippets.

@martinomburajr
Created May 31, 2019 04:20
Show Gist options
  • Select an option

  • Save martinomburajr/03c3e69dcca56224de06791b7c232bd2 to your computer and use it in GitHub Desktop.

Select an option

Save martinomburajr/03c3e69dcca56224de06791b7c232bd2 to your computer and use it in GitHub Desktop.
net.PacketConn in go
//net/net.go l300
type PacketConn interface {
ReadFrom(p []byte) (n int, addr Addr, err error)
WriteTo(p []byte, addr Addr) (n int, err error)
Close() error
LocalAddr() Addr
SetDeadline(t time.Time) error
SetReadDeadline(t time.Time) error
SetWriteDeadline(t time.Time) error
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment