-
Notifications
You must be signed in to change notification settings - Fork 0
Message Format
Bahriddin Abdiev edited this page Nov 21, 2017
·
2 revisions
Message is the class of the transmission unit in the project. Each message object consists of four objects:
- respective a username (String)
- message ID (int)
- message type (int)
- object representing content (Serializable).
Since the content is a generic serializable type, the Message class is quite flexible that can store diverse information. Since the Message class itself is also serializable, we can easily transmit a Message object through Sockets.