GithubHelp home page GithubHelp logo

anewssystemimplementation's Introduction

A Simple News System Implementation ๐Ÿ“ฐ

An overview of the system:

overview

Background

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.

Installation

Execute the following commands in the /src/ directory:

make all
make install

Usage

After the installation, navigate to the /bin/ directory where the executables now will lie with the command:

cd ../bin

Run the Server

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').

Run the Client

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.

Example

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

anewssystemimplementation's People

Contributors

mikapersson avatar

Watchers

 avatar John Backsund avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.