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
+14
View File
@@ -0,0 +1,14 @@
//go:build !windows
package ipc
import "net"
func Dial() (net.Conn, error) {
// TODO - use XDG runtime dir, also handle portable mode
return net.Dial("unix", "/tmp/supersonic.sock")
}
func Listen() (net.Listener, error) {
return net.Listen("unix", "/tmp/supersonic.sock")
}