Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- import java.io.PrintStream;
- import java.net.Socket;
- class SOK_1_CLIENT
- {
- public static void main(String[] args) throws IOException {
- SOK_1_CLIENT CLIENT = new SOK_1_CLIENT();
- CLIENT.run();
- }
- void run() throws IOException
- {
- Socket SOCK=new Socket("localhost",444);
- PrintStream PS=new PrintStream(SOCK.getOutputStream());
- PS.println("mathfucker");
- InputStreamReader IR=new InputStreamReader(SOCK.getInputStream());
- BufferedReader BR=new BufferedReader(IR);
- String Mes=BR.readLine();
- System.out.println(Mes);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement