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