DirectPlay Chat For Java.
This sample demonstrates how to use the DirectX For Java DirectPlay object to implement a simple chat sample. Note that this sample will not work if you do not have a full install of DirectX3 or better.
To start a chat session, select your service provider and hit next. You may be asked you for connection information depending on the service provider you chose. A list of available sessions will appear. Selecting a session will show you the members in it. You can now either select "join" to connect to a selected session or "create" to establish a new session.
If you are joining an existing session make sure you are using the same service provider to communicate. Now provide a name and click next to enter the session. Your connection will then be announced to everybody already in the session and you can then join the conversation.
If you are creating a session, in addition to your own name, you will need to provide a name for the session. Click next and wait for someone to join the conversation.
|