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

  It infrastructure groups

Information Technology infrastructure groups are often responsible for direct customer interaction and associated customer service.

  Define physical secuirty and three types of threats

Define Physical secuirty and three types of threats related with physical security. Write down the steps in designing and choosing a secure site in detail.

  List three key things employees remember on data privacy

List at three key things employees should remember on data privacy, security practices, and the legal implications of data privacy. The document should be something which draws someone to look at it while still maintaining professional appearan..

  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

  When applying cryptography determine why securing the key

when applying cryptography determine why securing the key is more important than securing plaintext or ciphertext.

  Define encryption

In a given encryption system where the messages are expressed only as numbers and "e" is an integer.

  Network security

Network Security

  The discussion board is part of the core of online

the discussion board is part of the core of online learning. classroom discussion in an online environment requires

  Internet working equipment

Discuss and explain any of the internet working equipment that you have experience with and the advantages and disadvantages of them.

  Create an overloaded constructor

Create the statements to make an overloaded constructor for the class named Car. The constructors should support 0, 1, or 2 arguments. The 1st argument will denote engine size and contain an Integer.

  Analyse potential attacks and give a method of prevention

Write a key exchange protocol for A and B to share a symmetric key. Analyse potential attacks and give a method of prevention and write a key exchange protocol for A and B to share a session key. Must consider mutual authentication, freshness, inte..

  Describe the merits and demerits of other uses of this

in recent years the fcc and other bodies around the world have been removing spectrum dedicated to analog tv

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