Results 1 to 4 of 4

Thread: server-client question

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2003
    Posts
    10

    server-client question

    I am working on a game project where server play against client. I made the client side send the server game information but I have problems with making the sever send to client simultaneously.
    can anyone guide me how to do it? how many sockets I need? and a code example would be great.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You should need 2 sockets. One for each direction.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2003
    Posts
    10
    I think I have 2 directions: from client to server and from server to client.
    Do I need 4 sockets in that case?

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    No, 2. One for each direction.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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