An overview of the system:
A news system has been developed consisting of a news server and a news client. The server can handle two types databases, one stored in the primary memory (in-memory) and another stored on disk. A database contains newsgroups, where each newsgroup contains articles, and the client accepts commands from the user and communicates with the server. Multiple clients can be connected to the server at any time.
Execute the following commands in the /src/ directory:
make all
make install
After the installation, navigate to the /bin/ directory where the executables now will lie with the command:
cd ../bin
Run the in-memory version of the server with:
./inmemserver [port]
Run the disk version of the server with:
./diskserver [port]
where port is the specified port through which the server will listen for traffic and to which the client will connect (for example '3000').
The following command will run the client:
./newsclient [hostname] [port]
where hostname specifies the IP-address where the server is hosted, for example 'localhost' if the client runs on the same computer as the server, and port is described above.
An example of how you can test the program on your computer (starting from /src/):
make all
make install
cd ../bin
./newsserver 3000
./newsclient localhost 3000