Created
May 31, 2019 04:20
-
-
Save martinomburajr/731bbab2433469ffe790fea311a2777f to your computer and use it in GitHub Desktop.
net.PacketConn in go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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