Multi-threaded java program to handle multiple clients in an auction
This program is a server-client model where clients can connect to the server using netcat or telnet and bid on stock items in the server.
- First go to "Source Code" folder and compile "Main.java" file, then compile "Controller.java".
- Run the program by entering "java Main" in the terminal. This will open up a GUI
- Then Select Server -> Start Server from the MenuBar
- Thereafter use another terminal to log in to the server as a client(Use the port 2000).
- Only within the same LAN is allowed to connect to the server at this stage.
- After that enter your name to begin bidding.
- After entering your name, enter the symbol of the company you want to bid.
- If the given symbol is valid and it is in the database, You will be provided with the current stock market price.
- You will have to enter a higher price than the current price since its following the convention of an auction.
- If you need to bid again for the item then again enter the symbol and after that enter your price. Like wise you can bid for any item in client mode.
- If you need to find a current pice of a item which is not displayed in the GUI Top Part, You may search from the list.
- Your bidding history will be recorded in the server.
- Only the highest price you bid will be saved with the company information and time.
- If you want to logout in the client mode then type 'quit'.
You need to have Java installed and Netcat or telnet in order to connect to the server
- Keshara Weerasinghe E15383
- Nithya Kularatne E15188
This project is available for everyone to try and learn.