Hi,
I'm having difficulties creating a client application using VB in
ASP.NET that receives TCP messages from a VB6 server application.
The client sends a message to the server and receives between 4-7
responses. The problem is that the server application is connected to
yet other applications that return quotes, each quote with a limited
lifespan to accept. Therefore neither the client or server application
can wait till all quotes are received before sending them on or
displaying them to the user. So, should it be an asynchronous client
connection?
Ok so I've gotten that far (although at the moment I can only display
the first message). I'm a bit confused as to how it all works. I need
the code behind in the client asp.net application to render any quote
message in the users browser as soon as they are received whilst
continuously listening for more messages. Then, as subsequent messages
are received, the code behind should refresh the users browers and
display the next message, and so on, until all messages have been
received. Does an asynchronous client socket allow this? Up until this
point I have followed the example in the MSDN library:
http://msdn.microsoft.com/library/de...ientSocket.asp
And changed the bytesread condition to a length of message condition
as the server application never closes the connection.
Each message that is sent to the client contains a message length, the
total number of messages, and the number of that particular message.
Any help or pointers to helpful sites would be very much appreciated.
Thanks,
Adam