sockets_windows.go 235 B

1234567891011121314
  1. package sockets
  2. import (
  3. "net"
  4. "time"
  5. "github.com/Microsoft/go-winio"
  6. )
  7. // DialPipe connects to a Windows named pipe.
  8. func DialPipe(addr string, timeout time.Duration) (net.Conn, error) {
  9. return winio.DialPipe(addr, &timeout)
  10. }