overflow_discovery/server/server_handlers_windows.go

16 lines
230 B
Go
Raw Normal View History

2017-11-15 06:59:43 +00:00
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
}