I need some advices please

From: Nico (bougon666_at_hotmail.com)
Date: 05/03/04


Date: Mon, 3 May 2004 14:33:39 -0400

Hello everyone,

I have re-formulated the question I asked on my last post::

    I am trying to capture the System event raised when a Network Connection
is established in VB.NET (ie. connection from a client to a network
resource, just like the winsock control did successfully for so many years)
AND the one that is raised when data is recieved on this connection. I have
seen many posts suggesting to create a timer and check the network status
(or even use endless loop instead of a timer) but I find this much too
resource hungry for my requirements.

    I want to catch the event when it arrises, just like Winsock did or the
event listeners in Java. I know there is a way to do this, I believe it
exists, Microsoft are not the kind of enterprise to start from something
that works well (ie: winsock) and go backward to the flinstone's era (ie:
using an endless loop or a timer to pool again and again and again and eat
all your precious CPU time... The interrupt controler on the PC isn't there
just for the good looking, it have it's purpose and one of them is to "Tell"
that something happened on that or that part pf the hardware, etc.). This
was once implemented and I don't see why this would have disapeared just
like this.

Perhaps I can listen to Windows messages or something like that (if I knew
what to listen for!).

I have tried search MSDN, Google and this newsgroup for a working solution
(Without the loops / timers) but have not been successful.

Any help/code would be greatly appreciated.

Thanks

Nico



Relevant Pages

  • Re: Slow Connection
    ... When I access my network places and select view workgroup computers, ... access and the same happens again, the egg timer. ... connection process is very slow. ...
    (microsoft.public.windowsxp.network_web)
  • Re: IP Address resource does not come up after failover!
    ... If the network that an IP address resource is associated with is down, ... crossover cable is still up the cluster service on both nodes continues to ... second connection gets broken) and I do a manual failover (which otherwise ...
    (microsoft.public.windows.server.clustering)
  • wifi -- one wifi connection for both Work and Internet?
    ... - when I'm on a public internet connection ... and try to connect to a resource that I've identified as 'Work', ... Is there any way to get the device to identify the work wireless network ...
    (microsoft.public.pocketpc)
  • PCI resource allocation problem
    ... (It seems that if resource ... I've tried loading the kernel with pci=assign-busses (BTW ... Capabilities: Message Signalled Interrupts: 64bit+ ... timer specific routine.. ...
    (Linux-Kernel)
  • Re: One-shot high-resolution POSIX timer periodically late
    ... small bursts due to network jitter (typical average rate of 1000 packets ... Just before I re-send a packet, I arm a one-shot timer in order to ... Linux Plug and Play Support v0.97 Adam Belay ...
    (Linux-Kernel)