SHOW:
|
|
- or go back to the newest paste.
1 | package com.client.core; | |
2 | ||
3 | import java.io.BufferedReader; | |
4 | import java.io.InputStream; | |
5 | import java.io.InputStreamReader; | |
6 | import java.net.Socket; | |
7 | import java.net.URL; | |
8 | ||
9 | import javax.swing.JFrame; | |
10 | ||
11 | public class Main extends JFrame{ | |
12 | ||
13 | private SocketManager network; | |
14 | ||
15 | public static void main(String[] args){ | |
16 | Window win = new Window(); | |
17 | win.setVisible(true); | |
18 | ||
19 | Main main = new Main(); | |
20 | main.run(); | |
21 | ||
22 | } | |
23 | ||
24 | private void run(){ | |
25 | network = new SocketManager("localhost",444); | |
26 | ||
27 | Thread thread = new Thread(network); | |
28 | thread.run(); | |
29 | } | |
30 | int a = 1; | |
31 | public SocketManager getSocketM(){ | |
32 | return network; | |
33 | } | |
34 | } |