Giter Site home page Giter Site logo

tomasochoa / csci-344-program1-socketclientprogram Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 55 KB

Linux socket/client program that returns definitions of words based upon the WordNet database or returns information about zip codes based upon a zip code database. Databases are located at the web site shown in class called dict.org.

License: MIT License

C++ 100.00%

csci-344-program1-socketclientprogram's Introduction

CSCI 344: Intro To Computer Communications

Program 1: A Simple Sockets Client Program, Word Definitions and Zip Codes

Description:

  • Linux socket/client program that returns;
    • Definitions of words based upon the WordNet database
    • Information about zip codes based upon a zip code database.
    • NOTE: Databases are located at the web site shown in class called dict.org.

Commands:

  • d or D:
    • Prompt user for a word, submit to dict.org, and retrieve its definition using the "WordNet" database.
    • Answer is checked to make sure no errors occured communicating to server
      • If error, display a generic error message
      • If no error, the word and it's definition neatly on screen and in an output file
  • z or Z:
    • Prompts user for a five digit zip code and retrieves zip's info from dict.org using the "U.S. Gazetter Zip Code Tabulation Areas (2000) database"
    • Error check
      • If error, display a generic error message
      • If no error, display zip info neatly on screen and write it to an output file
  • q or Q:
    • Clean up and quit (Close sockets)

Notes:

  • Need an output file to write output to
  • RFC number of dictionary protocol is 2229 and the port is 2628
  • Program must compile and execute properly on Linux machine in Fitzelle 252

csci-344-program1-socketclientprogram's People

Contributors

tomasochoa avatar

Stargazers

Gavin avatar

Watchers

James Cloos avatar  avatar

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.