Results 1 to 4 of 4

Thread: Client / server, Whats wrong with my code.

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    12

    Client / server, Whats wrong with my code.

    ive made a client server program, the clients r suppose 2 be able 2 connect and send an X amount of messages. my problem is is that if multiple clients r connected and 1 client sends 2 messages the second one doesnt recieve and it disconnects the client.

    i.e.
    Ok way:
    Client 1: connects Client 2: connects Client 3: connects
    Client 1: sends message Client 2: sends message Client 3: sends message...
    - ok

    Not OK:
    Client 1: connects Client 2: connects Client 3: connects
    Client 1: sends message Client 1: sends message Client 2: sends message Client 3: sends message....
    - Not OK - Result for doing not ok

    client 1 , client 2, client 3: connect no problem
    client 1 sends first message : no problem
    client 1 sends another message: Problem messege never sends and client one times out, sends message saying it wasnt sent - in a nutshell, if u send anoter one after that from client 1 an error is generated saying in a nutshell message isnt sent because client 1 isnt connected

    client 2 message sends and so does client 3..

    also (believed error) if client 1 , 2 , 3connect in that order and client 2 sends message first i think error generates, if not i think it does with 3.


    im uploading all my code and its not ur average looking client server connection mine is ... diffrent i guess
    Attached Files Attached Files

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