Skip to content
Snippets Groups Projects
Commit 73d133aa authored by am13g23's avatar am13g23
Browse files

Updated

parent ba3070f6
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@
This is my solution to the fourth space cadets challenge, which was to create a basic messaging app using Java sockets. My solution works by having one central server (currently hosted on a rasberry pi in my halls) with which individual clients communicate. Clients can join and leave chat rooms by sending requets to the server. All messages are first sent to the central server, which then sends them to all clients in the chat room the sender is in.
I have uploaded the raw source code (the .java file) for the server (Server.java), for the socket details class (used by the server to store ports and ips of clients) and for the client (MessageClient.java) in the source folder and the compiled object code (the .class files) for all of the above classes in the class folder.
Feel free to look at the code and test out the compiled files. Please note that for you to test out the code, the server code needs to be running on my raspberry pi and the DDNS record for it needs to be updated - in other words I need to have it set up. To overcome this, update the ip/url on line 22 of MessageClient.java to whatever the ip/url of the machine you wish to use it on is, then recompile. Also please don't steal my code - academic integrity and whatnot.
Thanks,
Angus
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment