|
|
@ -23,6 +23,7 @@ public class sigServer { |
|
|
|
BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream())); |
|
|
|
BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream())); |
|
|
|
String line; |
|
|
|
String line; |
|
|
|
line=in.readLine(); //Read the first line, this should be our request.
|
|
|
|
line=in.readLine(); //Read the first line, this should be our request.
|
|
|
|
|
|
|
|
if (line!=null) { |
|
|
|
String[] splitter = line.split(Pattern.quote(" ")); |
|
|
|
String[] splitter = line.split(Pattern.quote(" ")); |
|
|
|
if (splitter.length==3) { |
|
|
|
if (splitter.length==3) { |
|
|
|
//This is valid.
|
|
|
|
//This is valid.
|
|
|
@ -54,7 +55,8 @@ public class sigServer { |
|
|
|
while (!(line=in.readLine()).isBlank()) { |
|
|
|
while (!(line=in.readLine()).isBlank()) { |
|
|
|
//System.out.println(line);
|
|
|
|
//System.out.println(line);
|
|
|
|
} |
|
|
|
} |
|
|
|
} catch(SocketException e) { |
|
|
|
} |
|
|
|
|
|
|
|
} catch(SocketException|NullPointerException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|