skeleton of IPC mechanism to allow playback control with cmdline flags

This commit is contained in:
Drew Weymouth
2024-06-09 09:33:50 -07:00
parent e3dc2e3079
commit a851e0f600
6 changed files with 128 additions and 0 deletions
+19
View File
@@ -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)
}