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???
Printable View
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???
What server?
A Winsock server listening on a port.
It's a very rare occurence and it will happen on a very large and busy network (in Internet its possible).
The server will be used as an IM server, it should be able to handle many users...
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?
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.Quote:
Originally posted by petrus
The server will be used as an IM server, it should be able to handle many users...
just a question...Does it matter which arrives first?? :p
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.
You Could Always Send Data One And The Send Data Two When You Get The sendcomplete event Back