Commit 5419437e authored by Henry's avatar Henry

_compiles_ on windows

parent 29c38481
// +build darwin freebsd dragonfly netbsd openbsd linux
package reuseport
import (
......
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)
}
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment