/usr/share/doc/libconcurrent-java-doc/taskDemo/SFibClient.java is in libconcurrent-java-doc 1.3.4-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import java.net.*;
import java.io.*;
public class SFibClient {
public static void main(String[] args) {
try {
Socket s = new Socket("gee.cs.oswego.edu", 1618);
DataInputStream i = new DataInputStream(s.getInputStream());
DataOutputStream o = new DataOutputStream(s.getOutputStream());
o.writeInt(34);
int answer = i.readInt();
System.out.println("Answer " + answer);
}
catch (Exception e) { e.printStackTrace(); }
}
}
|