server/ipc/ipc_unix.go
crusader 6762d7f872 ing
2017-10-27 11:01:53 +09:00

17 lines
305 B
Go

package ipc
import (
"net"
)
func (sh *ServerHandlers) Listen() (net.Listener, error) {
//sh.path = filepath.Join(os.TempDir(), sh.Addr)
// os.Remove(sh.path)
return net.ListenUnix("unix", &net.UnixAddr{Name: sh.Addr, Net: "unix"})
}
func (sh *ServerHandlers) Stopped() {
// os.Remove(sh.path)
}