type rawConn … func (c *rawConn) ok() bool { … } func (c *rawConn) Control(f func(uintptr)) error { … } func (c *rawConn) Read(f func(uintptr) bool) error { … } func (c *rawConn) Write(f func(uintptr) bool) error { … } // PollFD returns the poll.FD of the underlying connection. // // Other packages in std that also import [internal/poll] (such as os) // can use a type assertion to access this extension method so that // they can pass the *poll.FD to functions like poll.Splice. // // PollFD is not intended for use outside the standard library. func (c *rawConn) PollFD() *poll.FD { … } func newRawConn(fd *netFD) *rawConn { … } // Network returns the network type of the underlying connection. // // Other packages in std that import internal/poll and are unable to // import net (such as os) can use a type assertion to access this // extension method so that they can distinguish different socket types. // // Network is not intended for use outside the standard library. func (c *rawConn) Network() poll.String { … } type rawListener … func (l *rawListener) Read(func(uintptr) bool) error { … } func (l *rawListener) Write(func(uintptr) bool) error { … } func newRawListener(fd *netFD) *rawListener { … }