{"modulePath":"github.com/glojurelang/glojure","version":"v0.7.25","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package srepl\n\n## Types\n\n```go\ntype Server struct {\n\t// contains filtered or unexported fields\n}\n```\nServer is a plain-text socket REPL server. Each connection gets an independent read-eval-print loop.\n\n```go\nfunc Start(host string, port int, portFile string) (*Server, error)\n```\nStart creates and starts a socket REPL server on the given host and port. Port 0 means auto-assign a free port.\n\n```go\nfunc (s *Server) Host() string\n```\nHost returns the host the server is listening on.\n\n```go\nfunc (s *Server) Port() int\n```\nPort returns the port the server is listening on.\n\n```go\nfunc (s *Server) Serve()\n```\nServe accepts connections in a loop. Blocks until Stop is called.\n\n```go\nfunc (s *Server) Stop()\n```\nStop shuts down the server and cleans up the port file.\n\n","path":"github.com/glojurelang/glojure/pkg/srepl","name":"srepl","synopsis":"","isRedistributable":true}
