|
-
Sep 13th, 2011, 09:28 AM
#1
Thread Starter
New Member
client to another client communication
Hi,
I have created the tcpclient and tcpserver evrything works fine they can communicate with each other. But lets say there is another client in server and i want them to communicate, send messages from client not to server but to another client. I am new on Network programmer so could you please help.
i have looked everywhere and i can't find solution.
Thank you
-
Sep 15th, 2011, 05:21 PM
#2
Re: client to another client communication
You need to step back and consider exactly what you are proposing.
If you have 2 clients connected to the same server it's quite a simple matter for the server to forward a message from one client to another. You just need an Application Protocol defined such that, for instance, a message preceded by "FWD TO <client> " will tell the server to forward the message to a given client.
If you want the Clients to communicate directly rather than via the Server, then one Client must connect to the other, implying that one of the clients must act as a Server.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|