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 / .NET Framework / .NET SDK / October 2003

Tip: Looking for answers? Try searching our database.

network connection state

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Dupont - 09 Oct 2003 15:02 GMT
I have an application which pool network connection as they are made.
and I want to check on the opened one if there is any data available.

would it be only for socket I know I have 2 option:
call Poll() or Select()

Select() is not really proper as the number of socket could grow dynamically
anytime (or is it, could I Abort() my Select() thread ?)
so I was thinking to Poll() every single socket, in order not to have
pending data on a Socket I was thinking to loop through the socket and call
Poll() with a 0 millisecond timeout.

Also my app has pipe as IPC, and I was thinking to use te DataAvailable
property of stream instead of doing socket specific stuff and coninuously
loop through connection in the background.

what about that ?
any suggestion ?
Ron Alberda [MSFT] - 21 Oct 2003 23:50 GMT
Poll would be the best option.

-Ron

> I have an application which pool network connection as they are made.
> and I want to check on the opened one if there is any data available.
[quoted text clipped - 14 lines]
> what about that ?
> any suggestion ?
Lloyd Dupont - 28 Oct 2003 12:19 GMT
Hi Ron !
It's all solved elegantly now !
I just find your message, too late ;-)

> Poll would be the best option.
>
[quoted text clipped - 20 lines]
> > what about that ?
> > any suggestion ?

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.