Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Socket connection lost (Connected = false)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christian - 26 Sep 2007 13:10 GMT
Hi all,

i try to write a website which should dynamically show
statusinformation of the user which are using it.
Another server provides the information over TCP (plain text api).

In the codebehind file i create a thread which connects to the server
and store it as a session variable...
The first time it works, after the function fails (recieve timeout)
the property connected is false ...

Does somebody have an idea ?
I need to recieve events from that server and then i need to reload
the page...

Does somebody have an idea ?

Kind regards

Christian
Kevin Spencer - 26 Sep 2007 13:57 GMT
When the page is returned to the browser, the Page class is released from
memory, but not the Thread. Rather than using this method, I would suggest
that you create a Web Service that maintains a constant connection to the
server, and can provide the information to the various instances of the Page
by request.

Signature

HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

> Hi all,
>
[quoted text clipped - 16 lines]
>
> Christian
Christian - 26 Sep 2007 15:12 GMT
Hi Kevin,

thanks for your help... I figured out, that this only happens if the
socket.recieve returns on timeout ...

I already thaougt on catching the data external ...

How can i communicate with the webservice ?
Is there a "simple" way ?
What advantages has a websevice ?

Kind regards

Christian
Kevin Spencer - 27 Sep 2007 12:31 GMT
Hi Christian,

XML Web Services are contacted via HTTP, using SOAP (Simple Object Access
Protocol). You can read more about Web Services here:

http://msdn2.microsoft.com/en-us/library/ms996507.aspx

Signature

HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

> Hi Kevin,
>
[quoted text clipped - 10 lines]
>
> Christian

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.