PC Review


Reply
Thread Tools Rate Thread

Asynchonous Client Socket

 
 
Adam
Guest
Posts: n/a
 
      13th May 2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Client Socket Shutdown is not visible on the Server Socket Miroslav Endys Microsoft Dot NET Framework 1 5th Nov 2007 04:52 PM
Client Socket Shutdown is not visible on the Server Socket Miroslav Endys Microsoft Dot NET 1 5th Nov 2007 04:52 PM
get client ip address in C# socket client application Sandeep Singh Microsoft C# .NET 13 23rd Jan 2006 06:23 AM
Socket Server to Socket Client..Client function not working when called from Server... trint Microsoft C# .NET 2 13th Apr 2005 09:43 PM
asynchonous callbacks Paul Microsoft C# .NET 2 4th Feb 2004 12:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 PM.