TCP socket program where each node initiates connection with some nodes and accepts connection with

Discussion in 'C++' started by Kathryn Bean, Oct 28, 2004.

  1. Kathryn Bean

    Kathryn Bean Guest

    I am designing application where each node initiates connection with nodes
    and accepts connection with other nodes. This application will be running
    on Sun Unix platform. I think each node should perform dual roles, be a
    TCP client and a TCP server and executes client and server codes in two
    different threads. Is this approach correct? How should my "server" accept
    new connections? One node can read several incoming messages and send
    messages to different nodes.

    Take care.
    Kathryn
     
    Kathryn Bean, Oct 28, 2004
    #1
    1. Advertising

  2. "Kathryn Bean" <> wrote in message
    news:SA5gd.1988$...
    > I am designing application where each node initiates connection with nodes
    > and accepts connection with other nodes. This application will be running
    > on Sun Unix platform. I think each node should perform dual roles, be a
    > TCP client and a TCP server and executes client and server codes in two
    > different threads. Is this approach correct? How should my "server"

    accept
    > new connections? One node can read several incoming messages and send
    > messages to different nodes.
    >


    This is a C++ newsgroup. You are off topic here (comp.lang.c++), try a
    networking group.

    john
     
    John Harrison, Oct 28, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,586
  2. Tjerk Wolterink
    Replies:
    2
    Views:
    1,466
    Dimitre Novatchev
    Aug 24, 2006
  3. Replies:
    1
    Views:
    1,218
    Joe Kesselman
    Nov 1, 2006
  4. Tiger
    Replies:
    5
    Views:
    989
    Dave Thompson
    May 1, 2006
  5. Morgan Cheng
    Replies:
    2
    Views:
    757
    Morgan Cheng
    Jun 23, 2007
Loading...

Share This Page