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. Advertisements

  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. Advertisements

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. Avizz
    Replies:
    3
    Views:
    14,902
    Andy Fish
    Sep 29, 2003
  2. greatestmclarenfan
    Replies:
    2
    Views:
    757
    Steve Horsley
    Feb 16, 2006
  3. Rune
    Replies:
    6
    Views:
    580
    Raymond Hettinger
    Aug 26, 2003
  4. Eric Brunel
    Replies:
    0
    Views:
    1,856
    Eric Brunel
    Oct 27, 2003
  5. Tim Black
    Replies:
    1
    Views:
    2,742
    Alan Kennedy
    Aug 3, 2004
  6. ferbar
    Replies:
    3
    Views:
    863
    Dave Thompson
    Jun 27, 2005
  7. Laszlo Nagy
    Replies:
    1
    Views:
    7,240
    Mark Wooding
    Jan 27, 2009
  8. Steve Holden
    Replies:
    1
    Views:
    1,006
Loading...