2017-11-15 06:59:43 +00:00
|
|
|
package server
|
|
|
|
|
2017-12-05 02:52:14 +00:00
|
|
|
// import (
|
|
|
|
// "net"
|
2017-11-15 06:59:43 +00:00
|
|
|
|
2017-12-05 02:52:14 +00:00
|
|
|
// "git.loafle.net/commons_go/server"
|
|
|
|
// "gopkg.in/natefinch/npipe.v2"
|
|
|
|
// )
|
2017-11-15 06:59:43 +00:00
|
|
|
|
2017-12-05 02:52:14 +00:00
|
|
|
// 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
|
|
|
|
// }
|