The purpose of this Java project is to develop a short message program with a centralized list of users/attendees.
Actually this was a group project but I decided to hang out solo.
The design is based upon a server/client relationship. An always-on server, which has an ability to serve multi-users on the same time using threads, runs on a machine and different clients at different locations connect to that server via net.
The application is mainly based on offline messaging so it stores the messages in a database. When a client decides to read his/her message, the message in the database deletes by the application automatically. Also, not opening a pop up conversation window just like the instant messengers does not mean that the program can't be used as an online messanger. The message arrives to destination when the receiver is whether online or offline. If the receiver checks his/her message box, the new message header will be seen there. It's the receiver's decision to read the message or does not.
The program uses only UDP sockets and the reason is that it is wanted in this way by the instructor. Although it is normal to use UDP sockets when sending and receiving messages, the login and register procedures should have been implemented with TCP sockets. Hence I implemented these parts with the logic of TCP socket transmission, but using UDP sockets.
But timers -to understand if a packet is lost or not- is not implemented so the program should crash if a packet losts through it's way. Hence this beta version is only fully guaranteed when it is used in a LAN.
The program engine is implemented in a way that new features can be inserted easily. So the program is very open to improvement.
Here are some screenshots of Blue Messanger Beta. You can also download the code from the link below.
As seen, the design is very simplified and user friendly for a course project. And the tones of blue is used as the title implies.
What should have been added to make the beta a full version?
-timers for UDP sockets
-pop up windows like in the instant messengers
-some code improvements
-an option to send a message to any user using a web site, without using the client application.
Actually this was a group project but I decided to hang out solo.
The design is based upon a server/client relationship. An always-on server, which has an ability to serve multi-users on the same time using threads, runs on a machine and different clients at different locations connect to that server via net.
The application is mainly based on offline messaging so it stores the messages in a database. When a client decides to read his/her message, the message in the database deletes by the application automatically. Also, not opening a pop up conversation window just like the instant messengers does not mean that the program can't be used as an online messanger. The message arrives to destination when the receiver is whether online or offline. If the receiver checks his/her message box, the new message header will be seen there. It's the receiver's decision to read the message or does not.
The program uses only UDP sockets and the reason is that it is wanted in this way by the instructor. Although it is normal to use UDP sockets when sending and receiving messages, the login and register procedures should have been implemented with TCP sockets. Hence I implemented these parts with the logic of TCP socket transmission, but using UDP sockets.
But timers -to understand if a packet is lost or not- is not implemented so the program should crash if a packet losts through it's way. Hence this beta version is only fully guaranteed when it is used in a LAN.
The program engine is implemented in a way that new features can be inserted easily. So the program is very open to improvement.
Here are some screenshots of Blue Messanger Beta. You can also download the code from the link below.
As seen, the design is very simplified and user friendly for a course project. And the tones of blue is used as the title implies.
What should have been added to make the beta a full version?
-timers for UDP sockets
-pop up windows like in the instant messengers
-some code improvements
-an option to send a message to any user using a web site, without using the client application.
To download the project
Hiç yorum yok:
Yorum Gönder