blob: 67608d145b5e9e754190bfc44d347c20df609815 (
plain)
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
|
import java.util.*;
import java.io.*;
import java.net.*;
class ChatServer
{
public static void main(String[] args)
{
ServerSocket ss;
Socket s;
try
{
ss = new ServerSocket(2452);
s = ss.accept();
T1 screenWriter = new T1(s);
T2 socketWriter = new T2(s);
screenWriter.start();
socketWriter.start();
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
|