Closed

A simple logging service built on top of a message queu

The task is broken into three parts, a message logging server, a library to log messages, and

a driver to test the library.

2.1 Message Logging Server

The message logging server should attempt to create the message queue, if this fails then

it should terminate with an error message, it should not run if the message queue actually

exists (IPC_EXCL will help here).

Once connected to the message queue, the program should sit in a loop, receiving a message,

and printing it to the stdout. Messages should be formatted:

id: message

where id is the type from the message structure and message is the message field.

The server should shutdown cleanly (i.e. delete the message queue) on receipt of a

SIGINT (generated by pressing control and C keys at the same time).

The sample code files logservice.h and logserver.c should form the basis of

your solution for this part.

2.2 Messaging library

The messaging library consists of two functions, both defined in logservice.h:

int initLogService()

This function should initialise the message queue to log messages to, returning

an id if successful, and -1 on error.

This function should not attempt to create the message queue, only attach it to

the process.

int logMessage(int id, char *message)

This function logs the message passed as the string message to the log

service id. It should return 0 on success and -1 on error.

When sending a message, the function should encode the processes pid into

the type field of the message, and the string into the message field.

1

It is your choice what to do if the message is too long (i.e. longer than

MSGCHARS), sample behaviours include breaking the message up into

smaller pieces or simply rejecting it. Whatever the choice, the documentation in

the header file should reflect this choice.

The sample code files logservice.h and logservice.c should form the basis of

your solution for this part.

2.3 Test Driver

This program is used to test the functionality of the library described in Section 2.2. It need

not be complex, but is should be able to determine, and report if any errors have occurred.

The sample code files logservice.h and logclient.c should form the basis of

your solution for this part.

Skills: .NET, C Programming, C# Programming, C++ Programming, Software Architecture

See more: Design a simple, minimalist but smart logo. Name: THE JASMINE GROUP, The task is broken into three parts, a message logging server, a library to log messages, and a driver to test the library. You , Built a simple website, the calendar plugin is a simple & elegant widget designed for all wordpress sites blogs, authority relations and the role of managers as a characteristic of public service differ from managing the public sector servic, where is the best place to get a coder to write a simple javascript program, this is a simple job where the description and price on 1300, purchase a simple ready to go wix blog that i can start writing and uploading to i have $20 us and have paid for the domain host, need a website to be built for an online repair service where users book, need a simple but professional html site that navigates with home about us photo gallery and contact us the html site should be , design a simple logo for namecard and letterhead my company is in the financial advisory business so i need something that is, design a simple logo for namecard and letterhead my company is in the financial advisory business so i need something that is :, design a simple logo as part of the site design the name in the logo should be “cloud dentistry”, design a simple logo as part of the site design the name in the logo should be cloud dentistry, design a logo for a mobile phone and computer repair shop the name of the shop is fixit design a simple yet enticing logo, create a sql database and create a simple but good looking website where i can access and query the database, simple vote service, message queu, simple friend requester send message myspace free, jboss simple web service example hello world

About the Employer:
( 0 reviews ) Sydney, Australia

Project ID: #16776352

10 freelancers are bidding on average $155 for this job

$155 AUD in 1 day
(42 Reviews)
5.7
jonyahmed105

Hi I can handle it because I understand this task. looking forward............................................... Thanks

$155 AUD in 3 days
(11 Reviews)
4.6
humrobo

Hi Hope you doing well I read your job description and understand job your requirements. I am interested in your job I am having 6+ experience in .NET, C# Programming, Database Administration, Microsoft SQL Se More

$155 AUD in 3 days
(2 Reviews)
3.5
amitbanerjee2812

Dear Hiring Manager, I read your job description and I am confident that I can exceed your expectation as you want A simple logging service built on top of a message quue and i am more than capable to achieve your More

$155 AUD in 3 days
(5 Reviews)
3.5
$155 AUD in 3 days
(2 Reviews)
1.2
$155 AUD in 3 days
(1 Review)
0.8
XinaTechnologies

Dear Client, Here we would like to bring in your notice that we are 5 Year old company and have extensive experience with Web development business like ecommerce, marketplace for buy and sell, classified business, dat More

$155 AUD in 3 days
(0 Reviews)
0.0
BeyoutiF00L

BeYoutifool designs, are creative, unconventional, and impeccably unique. These designs give personality to your brand. The convergence of brilliance and simplicity, is the inception of your successBe what you believe More

$30 AUD in 2 days
(0 Reviews)
0.0
TwoStatesTech

Yes after go through your job details and attachment I assure to you that I am complete your work using my .NET development skills iwth full of perfection . I have more than 6 Years of exp. designing and developin More

$277 AUD in 3 days
(0 Reviews)
0.0
$155 AUD in 15 days
(0 Reviews)
0.0