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

  Debug a program with a jframe

Design, implement, test, and debug a program with a JFrame that allows the user to enter a series of contacts' names, ages, e-mail addresses, and cell phone numbers, and creates a file from the entered data

  Java program which handles events from different sources

how to setup a program to respond to events from any one of these sources. How do you create the necessary listener class? How do you associate the listener object with the event source?

  Creates an object of type fahrenheit

Creates an object of type Fahrenheit and an object of type Celsius - Accepts a single argument from the command line

  Draw all tree patterns corresponding to the instruction

Draw all tree patterns corresponding to this instruction (and its special cases). Pick one of the bigger patterns and show how to write a Java if-statement to match it, with the Tree representation used for the MiniJava compiler.

  Hash-join algorithm

In this assignment, you will have a chance to implement the hash-join algorithm for a DBMS. You can use C, C++, or Java to write the program. However, your program should include su- cient comments to make it readable. You need to turn in

  Java program that prompts the user to input three numbers

Need a java program that prompts the user to input three numbers. This program should then output the numbers in nondescending order

  Discuss the fundamentals of object oriented programming

Include an accompanying illustration for each of the fundamentals(example, code sample, etc.)Note: Try to use Java and not C++ for examples.

  Create the program which converts fahrenheit to celsius

Create the following program which converts Fahrenheit to Celsius. Read integer Fahrenheit temperatures from the user.

  Java program that implements an algorithm known as a bubble

writing a simple Java program that implements an algorithm known as a Bubble Sort. A Bubble Sort is a simple sorting algorithm that takes an unsorted array of elements and sorts them into ascending order.

  Write a class array that encapsulates an array

Write a class Array that encapsulates an array and provides bounds-checked access. The private instance variables should be int index and inarray[10]. The public members should be a default constructor and methods (signatures shown below) to provide ..

  Write a program to read a file and encode

Write a program to read a file and encode the file to an encrypted file. And write a program to get an encrypted file and decode to original file. Your program should prompt the user to enter an input file name and an output file name

  Write a java application that prompts the user for input

Write a Java application that prompts the user for pairs of inputs of a product number (1-5), and then an integer quantity of units sold (these are two separate prompts for input values).

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