Sockets


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Sockets

  1. #1
    Zane Thomas Guest

    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

  2. #2
    Philip Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center