Skip to content
Snippets Groups Projects
Commit f83d1231 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

Merge branch 'master' of gitlab.c3sl.ufpr.br:portalmec/portalmec

parents eed87dd8 ed188268
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,6 @@ class AutocompleteService
end
def query(query)
return open( "#{@url}:#{@port}?q=#{query}" ).read
return open( "#{@url}:#{@port}?q=#{query.downcase}" ).read
end
end
......@@ -44,12 +44,15 @@ using namespace std;
int main(int argc, char ** argv) {
if ( argc != 3 ){
cerr << "Usage: " << argv[0] << " <dicionary:file_url> <port:int>\n";
if ( argc < 2 ){
cerr << "Usage: " << argv[0] << " <string dicionary=../brazilian.txt> <int port=4242>\n";
return 1;
}
int port = atoi(argv[2]);
int port = 4242;
if ( argc > 2 ){
port = atoi(argv[2]);
}
EmbeddedServer server(argv[1], port);
while(1)
sleep(100);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment