|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package pad.prac2;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
public class Server
{
private MyServerSocket ss;
public Server(String ip, int port)
{
try
{
ss = new MyServerSocket(new PrintWriter(System.out),new BufferedReader(new InputStreamReader(System.in)));
}
catch(IOException ioExc)
{
System.out.println("TCP: Error initializating server socket");
}
}
}
|