Results 1 to 2 of 2

Thread: client to another client communication

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    1

    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

  2. #2
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    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
  •  



Click Here to Expand Forum to Full Width