| commit | 2f45f72dce309e4afb8d1279a157ae1ad865ec8f | [log] [tgz] |
|---|---|---|
| author | Alexey Borzenkov <snaury@gmail.com> | Mon Mar 28 23:40:01 2011 -0400 |
| committer | Russ Cox <rsc@golang.org> | Mon Mar 28 23:40:01 2011 -0400 |
| tree | 654c3300e049bbf7580832e35387b28a3a5f0c78 | |
| parent | 98828f033a41d478fbd0b9331694b239633b0800 [diff] |
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