Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: Getting several messages one after the other
claudeno

From: Canada
Posts: 3
Member Since: 09/17/14
posted December 13, 2014 9:38 AM

If I use these lines in my client application:

Dim buffer() As Byte = New Byte(1023) {}
Do While myComponent.State <> ConnectionState.Closed
  myComponent.Marshal(myComponent.Read(buffer, 0, 1024), "", Nothing)
Loop

and my server sends several command strings to the client one after the other and each command may take some time to be processed by the client, what happens to the data?

Are the commands queued up by some mechanism to be processed by the UI event in sequence?

To be clearer:
1- Server sends a command to the client
2- Client gets the command on the UI and start processing it
3- Server sends a new command to the client while the client is still busy with the first command. What happen to that command, is it queued up and waiting to be processed?
4- Server sends a new command to the client which is still busy processing the first one. Is there any chance that I loose a command? Or any error occurs?

Thanks.
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX