Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-reuseport
Commits
5419437e
Commit
5419437e
authored
Mar 19, 2015
by
Henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_compiles_ on windows
parent
29c38481
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
available_unix.go
available_unix.go
+1
-0
impl_windows.go
impl_windows.go
+9
-3
opts_posix.go
opts_posix.go
+1
-1
No files found.
available_unix.go
View file @
5419437e
// +build darwin freebsd dragonfly netbsd openbsd linux
package
reuseport
import
(
...
...
impl_windows.go
View file @
5419437e
package
reuseport
import
(
"net"
)
import
"net"
// TODO. for now, just pass it over to net.Listen/net.Dial
...
...
@@ -10,6 +8,14 @@ func listen(network, address string) (net.Listener, error) {
return
net
.
Listen
(
network
,
address
)
}
func
listenPacket
(
netw
,
laddr
string
)
(
net
.
PacketConn
,
error
)
{
return
net
.
ListenPacket
(
netw
,
laddr
)
}
func
listenStream
(
netw
,
addr
string
)
(
net
.
Listener
,
error
)
{
return
listen
(
netw
,
addr
)
}
func
dial
(
dialer
net
.
Dialer
,
network
,
address
string
)
(
net
.
Conn
,
error
)
{
return
dialer
.
Dial
(
network
,
address
)
}
...
...
opts_posix.go
View file @
5419437e
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
windows
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package
reuseport
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment