Commit d718a07d authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

nits

parent f08ef691
......@@ -13,8 +13,6 @@ import (
)
const (
tcp4 = 52 // "4"
tcp6 = 54 // "6"
filePrefix = "port."
)
......@@ -305,6 +303,7 @@ func listenUDP(netw, addr string) (c net.Conn, err error) {
return c, err
}
// this is close to the connect() function inside stdlib/net
func connect(fd int, ra syscall.Sockaddr) error {
switch err := syscall.Connect(fd, ra); err {
case syscall.EINPROGRESS, syscall.EALREADY, syscall.EINTR:
......
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