I'd still prefer to see less code duplication. http://codereview.appspot.com/3790044/diff/8001/src/pkg/net/Makefile File src/pkg/net/Makefile (right): http://codereview.appspot.com/3790044/diff/8001/src/pkg/net/Makefile#newcode40 src/pkg/net/Makefile:40: GOFILES_linux=\ ...
14 years, 3 months ago
(2011-01-31 20:01:30 UTC)
#4
Sorry, I'm late. But I have some questions. Alex http://codereview.appspot.com/3790044/diff/16001/src/pkg/net/fd_windows.go File src/pkg/net/fd_windows.go (right): http://codereview.appspot.com/3790044/diff/16001/src/pkg/net/fd_windows.go#newcode496 src/pkg/net/fd_windows.go:496: ...
13 years, 9 months ago
(2011-07-14 01:41:46 UTC)
#8
> http://codereview.appspot.com/3790044/diff/16001/src/pkg/net/fd_windows.go#newcode496 > src/pkg/net/fd_windows.go:496: e = syscall.Setsockopt(s, > syscall.SOL_SOCKET, syscall.SO_UPDATE_ACCEPT_CONTEXT, > (*byte)(unsafe.Pointer(&fd.sysfd)), int32(unsafe.Sizeof(fd.sysfd))) > I ...
13 years, 9 months ago
(2011-07-14 03:02:04 UTC)
#9
>
http://codereview.appspot.com/3790044/diff/16001/src/pkg/net/fd_windows.go#ne...
> src/pkg/net/fd_windows.go:496: e = syscall.Setsockopt(s,
> syscall.SOL_SOCKET, syscall.SO_UPDATE_ACCEPT_CONTEXT,
> (*byte)(unsafe.Pointer(&fd.sysfd)), int32(unsafe.Sizeof(fd.sysfd)))
> I can't see any difference between old and new code. Can you? Except
> that new code is less readable.
I think it's because fd.sysfd is 64 bits on 64-bit
but before it was calling SetsockoptInt.
I don't know about the rest.
On 2011/07/14 03:02:04, rsc wrote: > > > I think it's because fd.sysfd is 64 ...
13 years, 9 months ago
(2011-07-14 04:37:03 UTC)
#11
On 2011/07/14 03:02:04, rsc wrote:
> >
> I think it's because fd.sysfd is 64 bits on 64-bit
> but before it was calling SetsockoptInt.
>
You're correct. I take back my argument.
Alex
On 2011/07/14 03:23:37, vcc wrote: > > search .h in mingw-w64 or vc++, you will ...
13 years, 9 months ago
(2011-07-14 04:39:25 UTC)
#12
On 2011/07/14 03:23:37, vcc wrote:
>
> search .h in mingw-w64 or vc++, you will find the define:
>
I did. You are correct.
Just wandering why they shuffled these fields around? ...
Perhaps to confuse use <g>!
Thanks for explaining. LGTM
Alex
Issue 3790044: code review 3790044: net: windows/amd64 port
(Closed)
Created 14 years, 4 months ago by vcc
Modified 13 years, 9 months ago
Reviewers: brainman
Base URL:
Comments: 8