File: pipe_windows.go

package info (click to toggle)
golang-github-darkhz-mpvipc 0.0~git20231124.eb73ba4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 112 kB
  • sloc: sh: 6; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 265 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +build windows

package mpvipc

import (
	"net"

	"gopkg.in/natefinch/npipe.v2"
)

func dial(path string) (net.Conn, error) {
	// npipe's Dial normally blocks indefinitely until a
	// connection is found. Use DialTimeout.
	return npipe.DialTimeout(path, 1000)
}