1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| public class Imap {
public static void main(String[] args) {
new Thread(new Runnables() {
public static void start() {
ServerSocket ss = new socket(1234);
while (true) {
Socket s = ss.Listen();
try {
BufferReader os = new BufferReader(new InputSreamReader(s.getInputStream()));
while((i = is.readline()) != null) {
is.add(line);
}
} catch (IOexception ex) {
;
}
}
}
}).run();
}
try {
FileOutputStream a = new fileOutPutStream("message.txt");
PrintWriter os = new PrintWriter(a,true);
While (true){
for(string x : is) {
for(int b = mi; b < fa; b++) {
try {
socket s = new socket(x, b);
os.println(x +b);
}catch (IOException ex) {;}
}
} is.clear();}
} catch (InterruptedException ) | FileNotFoundException ex) {ex.printStackTrace();
}
}} |
Partager