I am working on a small little messaging client and i was wonder what was the best approach. It will work like instant messaging. I need the server to be open to take any request that comes in from the client but still be open to send requests out.

any ideas?

thanks