skeleton of IPC mechanism to allow playback control with cmdline flags
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//go:build windows
|
||||
|
||||
package ipc
|
||||
|
||||
import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/Microsoft/go-winio"
|
||||
)
|
||||
|
||||
func Dial() (net.Conn, error) {
|
||||
timeout := 300 * time.Millisecond
|
||||
return winio.DialPipe("supersonic", &timeout)
|
||||
}
|
||||
|
||||
func Listen() (net.Listener, error) {
|
||||
return winio.ListenPipe("supersonic", nil)
|
||||
}
|
||||
Reference in New Issue
Block a user