Server.java
464 Bytes
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");
}
}
}