Results 1 to 10 of 10

Thread: Winsock

  1. #1

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553

    Winsock

    Hello,
    I have one winsock client connected to a server, and the client sends two datas, data1 and data2.
    Can data2 arrive to the server before data1???
    ICQ: 128716725

  2. #2
    Member
    Join Date
    Sep 2002
    Posts
    56
    What server?

  3. #3

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    A Winsock server listening on a port.
    ICQ: 128716725

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    It's a very rare occurence and it will happen on a very large and busy network (in Internet its possible).

  5. #5

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    The server will be used as an IM server, it should be able to handle many users...
    ICQ: 128716725

  6. #6
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099
    im not sure if it will arrive ahead of another packet but, could you send a message back telling the client/server that it has arrived? or will that take up to much bandwidth or something like that?

  7. #7
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Originally posted by petrus
    The server will be used as an IM server, it should be able to handle many users...
    Doesnot depend only on the server. The network structure and bandwidth available also affect this phenomenon. What happens is that data broken down into packets are sent from the client to the server. If there are multipe possible routes between server and client, each packet may travel a different way, generally passing through the lowest load factor route. This might jumble up your data, but again this should be a very rare occurences, that too limited to only small piece of data mostly.

  8. #8
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Well..

    just a question...Does it matter which arrives first??
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  9. #9
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    TCP/IP should ensure your app gets the data in the right order, regardless of how they go thru the network. I don't think its something you need to worry about on the Winsock OCX level.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  10. #10
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    You Could Always Send Data One And The Send Data Two When You Get The sendcomplete event Back

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