Write two command-line sockets programs

Assignment Help Computer Network Security
Reference no: EM13544470

Write two command-line sockets programs – a client and a server – as follows. Define a Who-Am-I message as a UDP datagram containing the ASCII string “WHO AM I”. Define a You-Are message as a UDP datagram containing the ASCII string “YOU ARE X AT Y” where X is the hostname string of the client host sending the Who-Am-I message and Y is the port number of the client host sending the WhoAm-I message. Write a client program to send a Who-Am-I message to a server and wait for a reply YouAre message from the server – on receiving the reply You-Are message the client program should print the message to the console and exit. The client program should take the IP address of the destination server from the command line (that is, as a command line argument). Write a server program that waits for a Who-Am-I message from a client and then returns to the client an You-Are message containing its host name and port number. The server program should not automatically terminate. If you modify existing code to meet the requirements of this assignment, be sure to carefully and clearly denote which code is yours and which is “old”. Be sure to consult the class C Style Guidelines for keeping your code style compliant. You are to submit two things: 1) A screenshot of execution and 2) the source code for the client and server programs.

Reference no: EM13544470

Questions Cloud

Find electronics workbench helpful in doing this portion : Design a circuit which provides 20 dB of gain. The 3dB filter points should be 50 HZ and 50 KHZ. Use a bipolar power supply (+/- 9V). Your circuit should be able to provide a minimum of 5 Watts of output power.
The fear of which faulkner speaks : what events not long before 1950 gave rise to the fear of which Faulkner speaks?
Example of the effect of multithreading : Imagine you are a graphic artist working on an animation for a movie. Describe at least one (1) possible effect that multithreading could have on your work process. Support your response with at least (1) example of the effect of multithreading.
Compare two kind and everyday use stories in an essay : Compare two kind and everyday use stories in an essay format of at least FIVE PARAGRAPHS  with an introduction, several body paragraphs, and a conclusion.
Write two command-line sockets programs : Write two command-line sockets programs – a client and a server – as follows. Define a Who-Am-I message as a UDP datagram containing the ASCII string “WHO AM I”
College and high school teaching similarities : College and High School teaching similarities are that he or she is put in a classroom to make sure that the rules are enforced and obey. ( how can I rephrase this sentence)
Loveliest of trees the cherry now : How can the poems, "Loveliest of Trees, the Cherry Now" and "High Windows" be compared and contrasted?
Identification of the major health issues for the african : Identification of the major health issues for the African American population with supporting evidence, data, and rationale
Create a primary function that uses a function handle with a : Create a primary function that uses a function handle with a nested function to compute the minimum of the function 20x2-200x+12 over the range 0

Reviews

Write a Review

 

Computer Network Security Questions & Answers

  What is ciphertext generated by encryption of character

A particular cipher is implemented by combining the ASCII representation of plaintext characters with pseudorandom bytes. What is the ciphertext (in binary form) generated by the encryption of the character D?

  Design the layout of users

The topology diagram for the different servers and locations and trust domains. For example, where is the firewalls, and where are the users located in the topology.

  List the three fundamental security properties

What sorts of protection is provided by the bank to ensure secure online banking? Justify why the bank would use these security measures.

  Strong ciphers produced by the enigma machine

Concur with, dispute, or qualify following statement: "The strong ciphers produced by Enigma machine are  result of complex mathematical trapdoor functions used to encrypt messages."

  Research paper about data encryption techniques

Write a research paper about data encryption techniques. Your content should include the following: Business advantages and disadvantages of full disk encryption, compared to other types of encryption techniques.

  Is protocol secure for sharing secrets on server computer

Suppose that Alice shares secret with her company's server computer. When Alice is on trip, she tries to store important message in CEO's account directory. Is this protocol secure? If not, how do you feel it could be modified to make it so?

  Analyse security procedures

Analyse security procedures

  Ideas for energizing a project team

Assume you are introduced to a assignment manager, who does not have authority to give a pay raise or promote a project team member.

  The relation between passwords and key size

the relation between passwords and key size. For this purpose we consider a cryptosystem where the user enters a key in the form of a password

  Organization-severely lacks in appreciating need security

Organization that severely lacks in appreciating the need for security or a company that depends on equipment that is outdated and services from contractors that are low quality? Why?

  Explain security model of class using cnss model

suppose that the security model is required for protection of your class. Using CNSS model, examine each of the cells and write a short statement.

  Explaining organization-s security architecture

Consider your organization's security architecture. How much do you know about it? How much do other workers know? How easy is it to learn more?

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