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 / New Users / November 2006

Tip: Looking for answers? Try searching our database.

Socket close notification

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mubashir Khan - 17 Nov 2006 10:32 GMT
I am so surprised to find that there is no close notification in socket
class. Like OnClose in MFC CAsyncSocket. Any suggestions please ......
Eugene Mayevski - 17 Nov 2006 10:46 GMT
Hello!
You wrote  on Fri, 17 Nov 2006 04:32:58 -0600:

MK> I am so surprised to find that there is no close notification in socket
MK> class. Like OnClose in MFC CAsyncSocket. Any suggestions please ......

In many cases there can be no notification until you attempt to read or
write (and the operation fails).
Also, as the sockets are synchronous, there's not much sense to make such
notification.

With best regards,
Eugene Mayevski
http://www.SecureBlackbox.com - the comprehensive component suite for
network security
Mubashir Khan - 17 Nov 2006 17:25 GMT
i am going to use the async methods ......
> Hello!
> You wrote  on Fri, 17 Nov 2006 04:32:58 -0600:
[quoted text clipped - 12 lines]
> http://www.SecureBlackbox.com - the comprehensive component suite for
> network security
Peter Duniho - 17 Nov 2006 17:57 GMT
>i am going to use the async methods ......

I haven't actually done any socket stuff in .NET, but...don't you get the
end-receive notification, with a 0 value for the call to EndReceive, to
indicate closure of a socket?
William Stacey [C# MVP] - 17 Nov 2006 19:48 GMT
I was going to say the same thing.  That is what I would do.

Signature

William Stacey [C# MVP]

| >i am going to use the async methods ......
|
| I haven't actually done any socket stuff in .NET, but...don't you get the
| end-receive notification, with a 0 value for the call to EndReceive, to
| indicate closure of a socket?

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.