Prepare a program to implement the client-server directory

Assignment Help Computer Engineering
Reference no: EM132193784

Write a C/C++ Program. Client/Server Directory

The application you will write for this implements a directory server.

you should write a client/server application that does the following:

- The concurrent server program runs waiting for a connection from a client.

-The clients and the server should (in general) run on different machines.

- Each client can send three different messages -- JOIN, LEAVE and LIST. The first two are for joining and leaving the list of players who are online and are willing to play.

The last is to retrieve the list of online players. The server responds to these messages with the appropriate actions. Note that the server needs to be concurrent because multiple clients should be able to talk to it simultaneously.

-This is meant to be a skeletal program, and you probably will need to impose some limitations; that is fine, just state them clearly.

-Sockets close when the program quits.

- Use socket 22317

here are very short barebones java code for a seqential server and client. Some host names in one of the undergrad labs (LAS 1004) are ptl10,....,ptl23.

for C

Compile the programs with gcc instead of cc.

For the server program, you need the -lsocket flag

For the client program, you need the flags -lsocket -lnsl

Program can be written in either c/c++/java

Reference no: EM132193784

Questions Cloud

The c code segments executed at the nodes in the parallel : Write the C code segments executed at the nodes in the parallel prefix algorithm for a) the upward flow, and b) the downward flow.
Write a sorting code that creates anew random number vector : write a sorting code that creates anew random number vector RNup[] that contains all of the original random numbers placed in rising order.
Difference between a microcontroller or microprocessor : What is the primary difference between a microcontroller or microprocessor, and an FPGA?
Determine the velocity of the plane relative to ground : An earoplane flying at velocity of 900 km/h at an angle of 30 degrees to the east enters a region where the wind is blowing at 100km/h n the north easterly.
Prepare a program to implement the client-server directory : Write a C/C++ Program. Client/Server Directory. The application you will write for this implements a directory server.
Use a random number generator to create a 1 row : Write a C/C+ program that uses a random number generator to create a 1 row, N column vector of random numbers RN[] between min and max.
What is the role of government in a democracy : Please define and explain what it means to live in a democracy. What is a democracy? What is the role of government in a democracy?
Write a class for a fruit basket : Instantiate and object called myBasket of the class FruitBasket . Assign a value of 5 to the apples field of myBasket.
Why rule of law seen as cornerstone of development policy : Why is the rule of law seen as a cornerstone of development policy? Is transnational law the solution to a problem or a problem in itself? Explain

Reviews

Write a Review

Computer Engineering Questions & Answers

  Imagine that you''re the manager of a small project

suppose that you're the manager of a small project. What baselines would you define for the project and how would you control them, also state what are baselines?

  Write a test class with test functions

You must write a test class with test functions for the following public methods (except the constructors):

  Suggest all sources using APA style

Suggest all sources using APA style

  Define the terms attributes sampling and variables sampling

Audit Sampling: Types of Audit Samples. You have been assigned to the audit of Phillip's Inc., a chain of convenience stores.

  Questionwrite down a java program that uses a

questionwrite down a java program that uses a two-dimensional array to store the highest and lowest temperatures for

  Develop a product service idea

After reviewing the assigned reading materials, complete the following activities: Describe the product/service including the benefits of using the product.

  Show the result of each of the operations in sequence

Show the result of each of the following operations in sequence (that is, (ii) assumes (i) has occurred).

  Basic concepts of communicating with restful web services

Demonstrate the fundamental basic concepts of communicating with RESTful Web services. Demonstrate the ability to persist application data to a remote Web server. Demonstrate the ability to retrieve application data from a remote Web server without e..

  The creation of sequence and communication diagrams

what guidelines should be followed when creating or drawing a sequence diagram?

  What circumstance would matrix arising in least-square curve

Under what circumstances would the matrix arising in least-squares curve fitting be singular? Does the least-squares method work if two different observations.

  Imagine we want to add to the sterling class

a penny may be further divided into halfpennies and farthings -> farthing worth 1/4 of a penny. There was a halfpenny coin, farthing coin, halffarthing coin.

  Draw the invoice in html for presentation on the web

To appreciate this flaw, imagine the changes that would be necessary to draw the invoice in HTML for presentation on the Web.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd