]> Cypherpunks repositories - gostls13.git/commit
net: more refactoring in preparation for runtime integrated pollster
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 7 Mar 2013 17:44:24 +0000 (21:44 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 7 Mar 2013 17:44:24 +0000 (21:44 +0400)
commitb000f2286c3c9d462cf390084e1ea4ae16649fe9
treec99a971c88d9106af4a078e89ef10c6ed0236ebe
parentcb945ba6ba23772336bf02fd2364c3df9e9233e0
net: more refactoring in preparation for runtime integrated pollster
Move pollServer from fd_unix.go to fd_poll_unix.go.
Add pollServerInit(*NetFD) to allow custom initialization.
Add pollServer.Close(*NetFD) to allow custom finalization.
Move setDeadline() to fd_poll_unix.go to allow custom handling of deadlines.
Move newPollServer() to fd_poll_unix.go to allow custom initialization.
No logical code changes.
The next step will be to turn off fd_poll_unix.go for some platform
(I have changes for darwin/linux) and redirect it into runtime. See:
https://golang.org/cl/7569043/diff/2001/src/pkg/net/fd_poll_runtime.go

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7513045
src/pkg/net/fd_poll_unix.go [new file with mode: 0644]
src/pkg/net/fd_unix.go
src/pkg/net/newpollserver_unix.go [deleted file]
src/pkg/net/sock_posix.go
src/pkg/net/sockopt_posix.go
src/pkg/net/sockopt_windows.go