server/ipc/ipc_windows.go
crusader 187ef708f6 ing
2017-10-26 21:30:55 +09:00

14 lines
188 B
Go

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)
}