anajid1 / cosc-439_project1 Goto Github PK
View Code? Open in Web Editor NEWSimple server client project.
Simple server client project.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.