overflow_discovery/server/server_handlers_windows.go
crusader 84a1d91c52 ing
2017-12-05 12:29:49 +09:00

17 lines
296 B
Go

package server
import (
"net"
"git.loafle.net/commons_go/server"
"gopkg.in/natefinch/npipe.v2"
)
func (sh *ServerHandlers) Listen(serverCTX server.ServerContext) (net.Listener, error) {
ln, err := npipe.Listen(`\\.\pipe\` + sh.addr)
if err != nil {
// handle error
}
return ln, err
}