Each object of this class represents a single message packet. A message packet is the only means of transfer of data between client and server. Message packet object and all the components inside it are Serializable
Field Summary |
||
Access | Data Type | Name |
public | CString | m_strFrom |
public | CString | m_strTo |
public | CString | m_strMessageBody |
public | CString | m_strReasonFlag |
public | CStringList | m_msgList |
public | CTime | m_MessageTime |
public | LOGFONT | m_MessageFont |
public | CString | m_strFontFace |
public | int | m_iFontColor |
public | int | m_iFontSize |
Constructor Summary |
||
CMessagePacket() | ||
CMessagePacket(CMessagePacket& msg) |
Destructor Summary |
||
~CMessagePacket() |
Method Summary |
||
void | Serialize(CArchive& ar) |
Field Detail |
m_strFrom
Sender of the message packet.
m_strTo
Receiver of the message packet.
m_strMessageBody
Message contents.
m_strReasonFlag
Reason for sending the message packet. See Protocol for different Reason flags.
m_msgList
String list, used for several reasons, like storing Friends' list, Blocked Users list etc.
m_MessageTime
Time when this message packet was sent.
m_MessageFont
Font using which the message is to be displayed at the receiver's end.
m_strFontFace
Name of the Font using which the message is to be displayed at the receiver's end.
m_iFontColor
Color of the Font using which the message is to be displayed at the receiver's end.
m_iFontSize
Size of the Font using which the message is to be displayed at the receiver's end.
Constructor Detail |
CMessagePacket()
Default Constructor.
CMessagePacket()
Copy Constructor.
Destructor Detail |
~CMessagePacket()
Default Destructor.
Method Detail |
Serialize(CArchive& ar)
Transfers all data on the socket, using the archive object. Data can be transferred both ways, from socket to the object,
as well as the reverse way, using this single method.