-
Re: Sockets
On 24 Jun 2002 12:36:28 -0800, "Philip" <philip.morley@bmb.com.bh> wrote:
>In vb.net, the sockets class exposes
>a CONNECTED property that can be used to determine the connection status.
Not reliable, don't use it.
>However is there any way of being notified via some kind of callback mechanism
>about the connection being terminated...
If you have a Socket.Receive in progress then it will return either a zero
or an exeception. If you're using BeginReceive then your callback method
will be invoked and when you call EndReceive either a zero or an exception
will be the result.
There is no Close notification other than those, however you will find
that for almost every purpose they work just fine.
--
*--------={ Fine Art for .NET }=--------*
| .Net Components @ www.abderaware.com |
*---------------------------------------*
Turn on, tune in, download.
zane a@t abderaware.com
-
Sockets
Hi,
In VB6 Winsock control there is an Event called 'CLOSE' which indicates that
the connection has been terminated. In vb.net, the sockets class exposes
a CONNECTED property that can be used to determine the connection status.
However is there any way of being notified via some kind of callback mechanism
about the connection being terminated...
regards
Philip
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks