Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Networking

This repository includes various exercises that focus on networking principles using Java. Each exercise explores different networking concepts and should be run within an Integrated Development Environment (IDE). Below are detailed instructions for each exercise:

Exercises

Exercise 1

Overview:
This exercise illustrates how to retrieve and display the contents from a specified URL.

Steps:

  1. Launch the Exercise1 class in your IDE.
  2. The prompted URL will be the one in the code.

Verification:

Picture1


Exercise 2

Overview:
This exercise demonstrates how to retrieve and display the contents from a specified URL.

Steps:

  1. Launch the Exercise2 class in your IDE.
  2. The file called "resultados.html" will be generated with the URL given.

Verification: Picture2

Picture3


Exercise 3

Overview:
This exercise highlights client-server communication where the client sends a number to the server.

Steps:

  1. Launch the Exercise3 class in your IDE.
  2. Enter a number when prompted.
  3. Simultaneously, launch the WebSocketClient class to manage the client-server communication.

Verification:

Picture4


Exercise 4

Overview:
This exercise extends client-server communication to handle mathematical expressions, including the use of π (pi).

Steps:

  1. Launch the Exercise4 class in your IDE.
  2. Enter a number or a mathematical expression.
  3. Simultaneously, launch the WebSocketClient class to manage the client-server communication.

Verification:

Picture5


Exercise 5

Overview:
This exercise sets up a basic HTTP server to serve files and images.

Steps:

  1. Launch the Exercise5 class in your IDE.
  2. Access the server via a web browser.
  3. Search for a file located in the src/main/resources directory.

Verification:



Running the Exercises

  1. Open the Project: Import the project into your preferred IDE.
  2. Build the Project: Ensure that your project compiles without errors.
  3. Run the Classes: Follow the specific instructions for each exercise to run the relevant classes.

Generating Javadoc

To generate Javadoc for this project, run the following Maven command in the root directory:

mvn javadoc:javadoc

The generated documentation will be located in the apidocs directory.


Build Information

Build:
This project was developed using Java 11 and Maven.

Author:
Hann Jang

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages