Results 1 to 4 of 4

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

  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

  2. #2

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    12

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

    been 3 days no reply anyone have an idea?

  3. #3
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

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

    I don't know vb.net but, this is just my guess could the Client be disconnecting after it sends the message?
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    12

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

    heh. in a way either problem is 1. server dc's client cause its outta sequence. or 2. server isnt checking 2 see if that client in particular is sending a message. or 3.client is actually dcing and not sending message. but its definnately not 3 or else u couldnt send infinite amount of messages via 1client and server

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