mdlayher / raw

Package raw enables reading and writing data at the device driver level for a network interface. MIT Licensed.
MIT License
425 stars 71 forks source link

[WIP] raw: use runtime network poller #38

Closed mdlayher closed 5 years ago

corny commented 5 years ago

SyscallConn() for the File struct has been aded in Go 1.12:

File now supports a SyscallConn method returning a syscall.RawConn interface value. This may be used to invoke system-specific operations on the underlying file descriptor. https://tip.golang.org/doc/go1.12#os

mdlayher commented 5 years ago

Yep, I'd like to clean this up a bit more and merge it once 1.12 hits, and then just require Go 1.12+ for this package so that timeouts actually work and are efficient.

mdlayher commented 5 years ago

Superseded by #40.