overflow_discovery/server/server_handlers_windows.go
crusader bb465d3628 ing
2017-11-15 15:59:43 +09:00

16 lines
230 B
Go

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