Socket Programming

Discussion in 'C Programming' started by Peter, Jul 19, 2005.

  1. Peter

    Peter Guest

    I am working on a small but complicated project. I don't know how to do it.

    All connections are TCP connection

    1. There is a Server which listens two ports, 1000 and 2000.
    2. There is a middle tier(Server-client mixed) which has two connection to a
    Server(1000) and a Server(2000)
    and listens a port(55000).
    3. There is a pure client which connects to middle tier port(55000)

    The part that I have to do is number 2. The connection to Server(1000) must
    be made first. Data can be received from Server anytime. Right after pure
    client sends a signal to connection(55000), middle tier makes a connection
    to 2000.

    Please let me know how to solve this.
    thanks in advance
     
    Peter, Jul 19, 2005
    #1
    1. Advertising

  2. Peter

    Sensei Guest

    On 2005-07-19 02:12:36 -0500, "Peter" <> said:

    > I am working on a small but complicated project. I don't know how to do it.
    >
    > All connections are TCP connection


    Using a correct newsgroup. Choose one for the OS you're using, and
    probably one for TCP/IP related questions.

    C has nothing to do with sockets.

    --
    Sensei <>

    cd /pub
    more beer
     
    Sensei, Jul 19, 2005
    #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. Laszlo Nagy
    Replies:
    1
    Views:
    4,857
    Mark Wooding
    Jan 27, 2009
  2. Jean-Paul Calderone
    Replies:
    0
    Views:
    972
    Jean-Paul Calderone
    Jan 27, 2009
  3. Laszlo Nagy
    Replies:
    0
    Views:
    553
    Laszlo Nagy
    Feb 1, 2009
  4. Steve Holden
    Replies:
    0
    Views:
    667
    Steve Holden
    Feb 1, 2009
  5. Steve Holden
    Replies:
    1
    Views:
    721
Loading...

Share This Page