Git Product home page Git Product logo

client_server_application_sockets's Introduction

Client_Server_Application_Sockets

This is using a socket as its form of communication between the server and client.

Programming Assignment 1 (10 pts, Due at 5pm, Feb. 19, Thu.)

Build a client/sever system for movie information retrieval using TCP sockets, which must be able to handle multiple concurrent connections. Please use unix system call "fork" to create a child process to serve an incoming connection in the server. The server maintains the latest movie information in a file “movie.txt” (posted on the blackboard). In the client program, whenever a user inputs a movie title (or part of it), the client program sends the inquiry to the server program, the server program searches the file, finds a match and returns the corresponding information (Rank, Title, Box Office) to the client program such that the user can see it on the screen. If the input text does not match any title in the file, display "No results found!". The user should be able to make such an inquiry multiple times during the lifetime of a connection.

Note that:

  1. Test both your server and client programs in a single machine, and use IP address “127.0.0.1” (local host) as the server’s IP address and port number "12345" for this service.

  2. For the grading purpose, you MUST write your programs using C/C++ and put the source code for the client and server programs in files called “client1.c” and “server1.c” respectively. And, you MUST make sure that your programs work on the programming environment that TA described in the recitation.

client_server_application_sockets's People

Contributors

juvillan avatar

Watchers

盛德 (Jack.D.Sheng) 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.