]> Cypherpunks repositories - gostls13.git/commit
internal/poll: add RawControl, RawRead and RawWrite methods to FD
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 13 Feb 2017 20:55:41 +0000 (05:55 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 19 May 2017 09:10:16 +0000 (09:10 +0000)
commit0a09c72c2e9f64a0888f0215db478840d152355f
tree95120bc4e0ee98f875de6c67e1b279ccde485f8b
parentde5c573baabf925ee7cb868285ed4f14de5f7fe9
internal/poll: add RawControl, RawRead and RawWrite methods to FD

This change adds RawControl, RawRead and RawWrite methods to type FD
to make the runtime-integrated network poller work together with a
user-defined function. The methods are used via the net package from
external packages and type FD is considered as an implementation of
syscall.Conn and syscall.RawConn interfaces.

Updates #19435.

Change-Id: I4ad04b10ffddb2b54fa8d70587440960d73c0a2d
Reviewed-on: https://go-review.googlesource.com/37038
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/poll/fd_plan9.go
src/internal/poll/fd_unix.go
src/internal/poll/fd_windows.go