17 lines
256 B
Go
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
|
||
|
}
|