1 changed files with 12 additions and 4 deletions
@ -1,16 +1,24 @@ |
|||
package org.sdf.git.fwix.gemini.server; |
|||
|
|||
import java.io.IOException; |
|||
import java.net.ServerSocket; |
|||
import java.net.Socket; |
|||
import java.util.concurrent.Executor; |
|||
import java.util.concurrent.Executors; |
|||
|
|||
public class FuckWixServer { |
|||
public static void main(String[] wixyPoo) throws Exception { |
|||
ServerSocket daddyWix = new ServerSocket(1965); |
|||
Executor kiddiePool = Executors.newFixedThreadPool(69); |
|||
while (true) { |
|||
try (Socket babbyWix = daddyWix.accept()) { |
|||
babbyWix.getOutputStream().write( |
|||
"20 text/plain\r\nFUCKWIX\r\n".getBytes()); |
|||
} |
|||
Socket babbyWix = daddyWix.accept(); |
|||
kiddiePool.execute(() -> { |
|||
try { |
|||
babbyWix.getOutputStream().write( |
|||
"20 text/plain\r\nFUCKWIX\r\n".getBytes()); |
|||
babbyWix.close(); |
|||
} catch (IOException e) { } |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue