local_socket/server.go
2017-10-24 11:57:54 +09:00

17 lines
256 B
Go

package local_socket
import (
"errors"
"net"
)
var StoppedError = errors.New("Listener stopped")
func (s *LocalServer) SetOnConnectionCallback(callback func(net.Conn)) {
s.callback = callback
}
func (s *LocalServer) Path() string {
return s.path
}