PacketFilter for accepting messages

How would I create a PacketFilter that accepts connections from other clients?

I basically want to listen for a message sent to my client and display it, which I believe would involve registering a new PacketListener. How would a Chat session be created in this way so that I can send a message back to the message originator?

thanks.

sonicbeez,

You could create a packet listener that listens for all message packets. However, the trick is figuring out when a conversation is a “new” one. This will involve some tricky tracking of Chat objects (maybe with weak references?). We’'re planning on building this into a future beta, however.

Regards,

Matt