public class LoginServer {
public static void main(String[] args) throws Exception {
ServerSocket ss=new ServerSocket(10009);
while (true)
{
Socket s = ss.accept();
new Thread(new ClientLogin(s)).start();
}
}
}
class ClientLogin implements Runnable
{
private Socket s;
public ClientLogin(Socket s)
{
super();
this.s = s;
}
@Override
public void run()
{
try
{
BufferedReader readfile=
new BufferedReader(new FileReader("g://client.txt"));
BufferedReader bufread=
new BufferedReader(new InputStreamReader(s.getInputStream()));
PrintWriter pwrite=new PrintWriter(s.getOutputStream(),true);