Well,

It should be quite simple to do.



Here is how I would detail the approach.

1.Create a java program that listens on a port using sockets.The job
of this server process will be to accept connections and create a new
thread for every connected client.Each such thread will hold a
reference to the input stream and output stream of the client socket.
2.Have your flex client connect to the java process using a username
and password. Have your java process store a map which contains the
username as the key and the output stream as the value.
3.When a message arrives, the server process write to the appropriate
output stream by iterating the map to find the receiver

Have a relates post which explains how to push data from server to a
flex client here

http://techmytongue.blogspot.com/2008/02/push-without-flex-data-services.html

You should also try to go through this code

http://www.beadlefox.com/xmlsocket.zip

Thanks,
Venkat
http://techmytongue.blogspot.com/



On Jan 6, 8:59 pm, "adi reddy" <[email protected]> wrote:
> Hi
> this is Adireddy, can anybody help me please , i have requirement called
> private chat(one to one chat),this is not a group chat , can anybody know
> private chat plese give me response.
>
> thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to