4.1 Sample Chat Session

Sample chat session

Figure 2: Sample chat session

In the preceding diagram, a client and server first negotiate a DDE conversation as described in section 3.1.3.

The following messages are then transmitted:

  1. The client sends a CHATDATA_UNICODE message, indicating Unicode support.

  2. The client sends a CHATDATA_PROTOCOL message, indicating versioning information.

  3. The server sends a CHATDATA_UNICODE message, indicating Unicode support.

  4. The server sends a CHATDATA_PROTOCOL message, indicating versioning information.

  5. The client sends a CHATDATA_FONTW message, providing the font information that is currently being used by the client. The server updates the font used for display of the client's text.

  6. The server sends a CHATDATA_FONTW message, providing the font information that is currently being used by the server. The client updates the font used for display of the server's text.

  7. The client sends CHATDATA_CHAR messages, corresponding to user input in the chat application on the client machine. The server processes these messages and displays the received text in an edit control presented to the user on the server.