Coder Social home page Coder Social logo

udp-server-client's Introduction

Name: Coty Kurtz
UT EID: cak2493

----------
Exercise 0
----------

Comments: My program tests each field in the received packet and outputs a message for any incorrect field in the packet. Below are 4 tests of output from my program. 2 are valid SSN's and 1 is invalid. The last test is an interaction with the lossy server on port 35607 with the timout value set to 5 seconds.

Output Test 1 (Success):
Enter a Social Security Number: 111111111
SSN sending to server: 111111111
Sending Message: 01640107023f023f069f6bc786b00000
Message Received: 41640107023f023f069f6bc741de04d2
P.O. Box Number is 1234

Output Test 2 (Error Received for Invalid SSN):
SSN sending to server: 123456789
Sending Message: 01640107023f023f075bcd1524a60000
Received Message: Ad??[?d??
Message received in hex: 41640107023f023f075bcd1564a18004
Server set error code
Server returned error

Output Test 3 (Success):
Enter a Social Security Number: 954772946
SSN sending to server: 954772946
Sending Message: 01640107023f023f38e8add2125c0000
Message Received: 41640107023f023f38e8add2c8390a22
P.O. Box Number is 2594

Output Test 4 (Lossy Server):
Enter a Social Security Number: 111111111
SSN sending to server: 111111111
Sending Message: 01640107023f023f069f6bc786b00000
Timeout, Resending Packet
Message Received: 41640107023f023f069f6bc741de04d2
P.O. Box Number is 1234

----------
Exercise 1
----------

Comments: Verification behavior is the same as Exercise 0. I set the timeout value to 60 seconds to ensure completion of interaction. Below is an interaction between my client, the cs356 server, and my sut server.

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.