- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
public void run() {
try {
System.out.println("START QUOTE RECEIVER SERVER SOCKET..............");
try
{
Thread.sleep(5000);
}
catch (Exception ex) {}
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
ServerSocket serverSocket = new ServerSocket(port);
while (!isInterrupted()) {
new RemoteDataReceiver(serverSocket.accept());
}
serverSocket.close();
} catch (IOException e)
{
e.printStackTrace();
}
}