]> Cypherpunks repositories - gostls13.git/commit
net: make {TCP,UDP,IP,Unix}Conn compliant of syscall.Conn interface
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 13 Feb 2017 21:38:10 +0000 (06:38 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 19 May 2017 09:10:27 +0000 (09:10 +0000)
commit366bb678aa0281ca2920e38ace9d695474a61797
tree314ed17b2cee6392ddaffc05807d1c48ce162091
parent0a09c72c2e9f64a0888f0215db478840d152355f
net: make {TCP,UDP,IP,Unix}Conn compliant of syscall.Conn interface

This change makes {TCP,UDP,IP,Unix}Conn types compliant of
syscall.Conn interface and adds type rawConn as an implementation of
syscall.RawConn interface.

By this change, the long-standing issues regarding unsupported socket
options and system calls can be solved partly and the broken x/net
packages due to https://go-review.googlesource.com/36799 can be
repaired.

Fixes #3661.
Updates #9661.
Updates #19051.
Updates #19435.

Change-Id: Ic996b040418b54f6d043bc70591789d5a5b23270
Reviewed-on: https://go-review.googlesource.com/37039
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/iprawsock.go
src/net/rawconn.go [new file with mode: 0644]
src/net/rawconn_test.go [new file with mode: 0644]
src/net/tcpsock.go
src/net/udpsock.go
src/net/unixsock.go