Write codes in those languages that communicate

Assignment Help JAVA Programming
Reference no: EM131426531

In this assignment, you will practice network programming using sockets. Sockets are tools for connecting two programs together so that they can talk to each other. They are available in many programming languages such as C, Java, etc., so you can use them write codes in those languages that communicate with other programs over the network.

In this assignment, you goal is to write two programs: 1) client and 2) server.

client:

It is a program that receives an input from the user (in a string format), creates a connection to the server over a specific port number, and sends the user's input to the server.

server:
It is program that on startup, waits for incoming connections over a specific port. When a connection is established, it reads the data sent from the client, and displays it on the screen.

You can use either C/C++ or Java for writing the client code and the server code. If you use C/C++, depending on your machine, you must follow the tutorial for either Windows socket programming or Linux socket programming. For Java, there is no difference.

socket programming in C for Linux:

https://www.binarytides.com/socket-programming-c-linux-tutorial/

socket programming in C for Windows:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms738545(v=vs.85).aspx

socket programming in Java:
https://docs.oracle.com/javase/tutorial/networking/sockets/index.html

There are many other tutorials online. Feel free to use them.

Submission:

Submit a zipped file containing a 1-page pdf report, along with your client code and server code via connect. DO NOT SUBMIT EXECUTABLES. In the report, simply explain how to solved the problem, and what online resources you used.
You can do the assignment in groups of 2.

Note: You may be asked to run your client and server code in the class on your laptop to test them. Be prepared to do so.

Verified Expert

The code shows the communication mechanism between the client and the server using Sockets . It consists of 2 Java Files demonstrating socket programming in java and a pdf file describing how to solve such problems and the resources that were used in solving it . It also contains the output screenshots of the java program. The Java code is written in IntelliJ IDE.

Reference no: EM131426531

Questions Cloud

Persuade leaders to respect and trust them as followers : What attributes should followers have to persuade leaders to respect and trust them as followers? Explain.
Explain rationale for rules and procedures you use : State and explain rationale for rules and procedures you use in the classroom. Explain how you involve students in decision making. Explain methods you use for conflict resolution.
Business strategy when in a hypercompetitive industry : 1. Discuss how collusion can have a negative affect as a business strategy. Give an actual example of a collusion strategy used by a company. 2. Describe how a firm develops a business strategy when in a hypercompetitive industry.
Supervisor in the health information services department : Suppose you are a supervisor in the Health Information Services Department of a facility with a policy prohibiting secondary employment with a competitor.
Write codes in those languages that communicate : You will practice network programming using sockets. Sockets are tools for connecting two programs together so that they can talk to each other - They are available in many programming languages such as C, Java, etc., so you can use them write code..
Describe the recruitment procedures : Describe the tasks that participants will be asked to perform including a step by step description of the procedures you plan to use with your subjects. Provide the approximate duration of subject participation for each procedure/ instrument and t..
Title-credit card default prediction : Please complete the project plan you should design the project plan according to all breakdown items listed below, the plan should be double spaced no requirement on page limit as long as you clearly answer all break down items and no requirement ..
How much does she need to save each year : Her savings, she plans to arrange retirement funding that will be in place if she were to live "forever" with the understanding that her heirs will inherit the remainder when she dies.
What might happen if validity is undermined : First, explain the general importance of validity as it pertains to educational assessment. Why should teachers always strive for this result? What might happen if validity is undermined?

Reviews

len1426531

3/14/2017 3:18:12 AM

Creaitng a client server programming model which works on networks - submit a zipped file containing a 1-page pdf report, along with your client code and server code via connect. DO NOT SUBMIT EXECUTABLES. In the report, simply explain how to solved the problem, and what online resources you used. You can do the assignment in groups of 2. Note: You may be asked to run your client and server code in the class on your laptop to test them. Be prepared to do so.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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