server/ipc/ipc_windows.go

14 lines
188 B
Go
Raw Normal View History

2017-10-26 12:30:55 +00:00
package ipc
import (
"net"
"gopkg.in/natefinch/npipe.v2"
)
func (sh *ServerHandlers) Listen() (net.Listener, error) {
sh.path = `\\.\pipe\` + sh.Addr
return npipe.Listen(s.path)
}