Đã Đóng

building message server and distribution agreement

building board message and distribution Agreement in C/C++

This project consists of two phases.

In the first phase, you will construct a simple network server.

The next phase will consist of convincing multiple such servers to work together. Read the document completely before starting any coding; everything in the document is part of the specification and it is your

responsibility to ensure that you have implemented the whole server as specified.

1

The challenge is set up so that it gives you the opportunity to showcase your skills in system programming in a POSIX1

environment. Indeed, you must implement the server as a UNIX service (“daemon”) and

you further must use the POSIX API provided by the UNIX standard C library. Therefore your server must

be written in C or C++.

Throughout the handout, we will refer to the following configuration parameters. How these parameters

are obtained will be described in Section 3.1.

• bp is the port number for client-server communication (positive integer), see Section 1;

• sp is the port number for inter-server communication (positive integer), see Section 2;

• bbfile is the name of the bulletin board file that will be manipulated throughout this project (string),

see Section 1;

• Tmax is the number of preallocated threads (positive integer), see Section 1.4;

• peers the list of peers participating in synchronization (possibly empty list of pairs hostname–port

number), see Section 2;

• d is a Boolean flag controlling the startup of the server, see Section 1.5;

• D is a Boolean flag controlling debugging facilities, see Sections 1.3 (last paragraph) and 3.2.

Part 1

Your first task is to construct a simple bulletin board server. The server accepts one-line messages from multiple clients, stores them in a local file, and serves them back on request. The name of the file is given by the parameter bb file. Messages are identified upon storage by a unique number established by the server, and by the “sender ” of the message (as provided by the USER command explained below).

The clients connect to our server on port bp. We also assume a production environment so that we implement concurrency control.

Part 2

We are now ready to implement a replicated database management system. Since we have it already we will use the bulletin board file as our database. This file is now kept replicated (and synchronized) on multiple servers.

Each server receives a list of the other servers that are participating in the synchronization. This is the list of peers as specified in the configuration file and/or on the command line. Each element in the list consists of a hostname and a port number.

In addition, each server listens on port sp for incoming requests for synchronization.

Kĩ năng: Lập trình C++, Lập trình C, Server, Linux

Về khách hàng:
( 0 nhận xét ) Sherbrooke, Canada

ID dự án: #33994479

8 freelancer chào giá trung bình$419 cho công việc này

NovaSofts

Hello Sir/ Ma’am We are a group of Software Engineers (Programmers) having 10+ years of experience. Expert in JAVA, C, C++ , C# , Python, MATLAB. Done 700+ projects here on FREELANCER.COM. Please check our profile Thêm

$250 CAD trong 2 ngày
(336 Nhận xét)
7.7
(2 Nhận xét)
5.4
kyriakostsigkis3

⭐⭐⭐⭐⭐⭐ C/C++/C#/.NET Expert ⭐⭐⭐⭐⭐⭐ Dear client. I have fully read your requirements and so motivated to work on your project as a senior developer. My major is C/C++/C#/.NET development and I have full experience over Thêm

$300 CAD trong 7 ngày
(12 Nhận xét)
5.0
maperdomo249

Hi.⭐⭐⭐⭐⭐ I have read your post about looking for C expert and have rich experience with Desktop Application. I am very happy to meet this job since I am familiar with C/C++. Please see my review, you can know i am a s Thêm

$500 CAD trong 7 ngày
(13 Nhận xét)
4.6
(25 Nhận xét)
4.4
Work12345x

Hi, I am a very talented software programmer with 13+ years of development experience (5+ years professional work experience). I am a results-oriented professional and possess experience using cutting-edge development Thêm

$500 CAD trong 5 ngày
(5 Nhận xét)
2.2
BestDev2022

Hello, Client! I read your project description carefully. I am Honest and High skilled developer I am not Agency like someone. I'm a C/C++/python and math expert. And I have a lot of experiences with server developing Thêm

$300 CAD trong 5 ngày
(3 Nhận xét)
1.2
ionstefanache1

Hi, I can do that educational project for you, in C or C++ on Ubuntu WSL(W10) Please contact me for details on chat/messenger Thanks

$750 CAD trong 30 ngày
(0 Nhận xét)
0.0