Chat server
| Prev | Next |
Main steps
Review theory
Implement chat server
- Investigate jtm.extra07 package
- If necessary, change value of static final int port = 7700 variable in ChatServer.java class and value of port key in src/resources/appplication.properties configuration file to different number e.g. 7701
- Implement class ChatServer to pass unit tests
Server could be checked using nc program, e.g. following:
nc 127.0.1.1 7700To check if server is listening on necessary port, run command:
netstat -antp|grep 7700- where pid is process id from the previous command
If necessary, server can be killed with command:
kill -9 pid
| Prev | Next |


