]> Cypherpunks repositories - gostls13.git/commit
net: implement non-blocking connect
authorAlexey Borzenkov <snaury@gmail.com>
Tue, 29 Mar 2011 03:40:01 +0000 (23:40 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 29 Mar 2011 03:40:01 +0000 (23:40 -0400)
commit2f45f72dce309e4afb8d1279a157ae1ad865ec8f
tree654c3300e049bbf7580832e35387b28a3a5f0c78
parent98828f033a41d478fbd0b9331694b239633b0800
net: implement non-blocking connect

Refactored bind/connect from sock.go into netFD.connect(), as
a consequence newFD() doesn't accept laddr/raddr anymore, and
expects an (optional) call to netFD.connect() followed by a
call to netFD.setAddr().
Windows code is updated, but still uses blocking connect,
since otherwise it needs support for ConnectEx syscall.

R=brainman, rsc
CC=golang-dev
https://golang.org/cl/4303060
src/pkg/net/fd.go
src/pkg/net/fd_windows.go
src/pkg/net/file.go
src/pkg/net/sock.go