sending messages between clients
hi,
I want to make small instant messenger,like yahoo.I have made a server which accept connection from different client & send online user list to each and every client connected to the server.
But now i have to send messages between the clients(chatting).
This can be do either through server or allow server establishing connection betwwen two client & allow them to continue chatting session.But i am not able to figure out how i do either of the things using socket programming.
Please help me ,to establish chatting session between the clients.
Thank you for replies
alok
# 1
Try describe the overall expected behavior of your application and its user interface requirement.For example, should the message exchange between specific two clients be non-public to other clients or even to the server?
hiwaa at 2007-7-8 22:34:30 >

# 2
Yes, It should be Non public to Other client but not to server.
Suppose client1 want to send message to client2 then it send message to server,then server passes this message to client2.
Now as client2 got the it send some reply to client1 which
is also reach to client1 through server.But I have problem ,as how
does client2 knows to which client he has send message as no of clients are connected to the server & more then one client has send message to client2.
Basically I have problem in sending reply to a message send by the different client connected to the server.
Thank You for reply