local_socket/server.go

17 lines
256 B
Go
Raw Normal View History

2017-10-24 02:57:54 +00:00
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
}