mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
project: use vndr for vendoring
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
f54339dfea
commit
f2614f2107
2107 changed files with 99972 additions and 26271 deletions
20
vendor/github.com/docker/swarmkit/xnet/xnet_unix.go
generated
vendored
Normal file
20
vendor/github.com/docker/swarmkit/xnet/xnet_unix.go
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// +build !windows
|
||||
|
||||
package xnet
|
||||
|
||||
import (
|
||||
"net"
|
||||
"time"
|
||||
)
|
||||
|
||||
// ListenLocal opens a local socket for control communication
|
||||
func ListenLocal(socket string) (net.Listener, error) {
|
||||
// on unix it's just a unix socket
|
||||
return net.Listen("unix", socket)
|
||||
}
|
||||
|
||||
// DialTimeoutLocal is a DialTimeout function for local sockets
|
||||
func DialTimeoutLocal(socket string, timeout time.Duration) (net.Conn, error) {
|
||||
// on unix, we dial a unix socket
|
||||
return net.DialTimeout("unix", socket, timeout)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue