File: sockets_windows.go

package info (click to toggle)
golang-github-docker-go-connections 0.2.1-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 216 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
package sockets

import (
	"net"
	"time"

	"github.com/Microsoft/go-winio"
)

// DialPipe connects to a Windows named pipe.
func DialPipe(addr string, timeout time.Duration) (net.Conn, error) {
	return winio.DialPipe(addr, &timeout)
}