This is an networking program that creates a “server” and a “client”, which both communicate using TCP/IP protocol style standards in their connections. When both the server and client are connected, the client is prompted with a input asking for a tag word. This input is echoed to the server which searches api.flicker for sample xml data which contains the inputted tag before echoing it back to the client.
- Java JDK (Any version from Java 8 or above works)
- Java IDE (Any Java IDE works)
To setup, follow these steps below.
Files setup:
- Download zip files and unzip the folder after download
- Import Java project into IDE
- Ensure that your Java JDK is added to the project
To run from IDE, follow the steps below:
- Open the project in the IDE
- Navigate to the ServerMain file and run it
- Navigate to the ClientMain file and run it
- Input tag when prompted
- Let the process run and check console to see if xml is echoed back to client
- Enjoy!
- Server and Client both use Port 5000.
- Navigate to the ServerMain and the ClientMain files to change port if needed