Code Monkey home page Code Monkey logo

cosc-439_project1's Introduction

Name: Abdullah Najid
Email: [email protected]
Date: 09-23-2021
Class: COSC 439
Professor: Dr. Tehranipour

Project #1
Description: This project modifies Dr. Tehranipour's existing program TCPServer.java and TCPClient.java. The project
    creates a simple server-client relationship. The TCPServer gets started first and then TCPClient connects to the
    server. The client sends messages to the server. The server then sends the client back the number of messages it
    received, a log of the client's messages, and the duration of the connection.

How to compile and run program: Simply compile ana_TCPClient.java and ana_TCPServer.java using javac in a terminal
    or using the built in compiler in an IDE. Run the program using java and the respective program name without any
    extension (.class or .java). It is important to run the server first and then the client. Make sure you give the
    port number to the server program otherwise it assumes port number 20750 and similarly give the server's host
    address and port number to the client program using command line arguments -h and -p otherwise it assumes the
    server program is on the localhost at port 20750.

*Conclusion*
    Time: 5 hours
    Difficulties: Figuring out how to send information from server to client (not a BIG difficulty just had to think
        about it).
    Bugs: No bugs that I know of. Client and server program should behave as expected as long as the user inputs are
        valid (no error checking).
    Credit:
        1)
            https://stackoverflow.com/a/20211695: Used this thread to understand how to get system time from java.
        2)
            https://www.w3schools.com/java/java_files.asp: I used the Java File Handling section from w3schools for
                file IO in the Server program.

cosc-439_project1's People

Watchers

Abdullah 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.