473,385 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Listen to System Event

Hello,

I want to get an event every time the ip address of a network adapter
changes.
How can I do it with C# and .Net1.1?

Alternatively all events of the Dhcp Source would do too.
Unfortunatly the EventLog doesn't get an event if the dhcp request
works correctly.

Help please.

Bye bembi

Jun 27 '06 #1
4 2412
Hi bembi,

..NET 2.0:

System.Net.NetworkInformation.NetworkChange class has two events:

NetworkAddressChanged and NetworkAvailabilityChanged

HTH

<bb*******@lycos.de> wrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...
Hello,

I want to get an event every time the ip address of a network adapter
changes.
How can I do it with C# and .Net1.1?

Alternatively all events of the Dhcp Source would do too.
Unfortunatly the EventLog doesn't get an event if the dhcp request
works correctly.

Help please.

Bye bembi

Jun 27 '06 #2
Hello again,

too bad I can't use .Net 2.0.

Isn't there any possibility to do this with .Net1.1?

bye bembi

Jun 28 '06 #3

<bb*******@lycos.de> wrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hello again,

too bad I can't use .Net 2.0.

Isn't there any possibility to do this with .Net1.1?
P/Invoke WSAEnumNetworkEvents

bye bembi

Jun 28 '06 #4
> P/Invoke WSAEnumNetworkEvents

Thanks for the reply. Any futher tipps how to do that?

bye bembi

Jun 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alex | last post by:
I am trying to determine if C# has the capabilities to listen for system events when the application does not have the window's focus. I am writing a windows application that I would like to run...
9
by: mBird | last post by:
I wrote a service that listens for broadcast messages from my firewall (UDP snmp trap messages) and parses and puts the data in an database. I'd also like to write an app that is a simple form...
0
by: Crirus | last post by:
I have a Socket server. Any value I give to the listener.Listen(1) socket, seems that it accept any connection request... why's that? I set a sleep on send thread in order to delay the response...
3
by: D. André Dhondt | last post by:
In VB.NET 2003, is there a way to create a System.Net.Sockets.UDPClient to listen to any address AND any port? I can get it to listen to any address, but only if I specify a port (for example,...
4
by: Glenn Sullivan | last post by:
Hi, I have been trying to get LISTEN/NOTIFY working in with JDBC. I cannot seem to get notified. I looked in the e-mail archive and saw a lot of similiar questions a couple of years ago. I...
5
by: Ted Shab | last post by:
Hi, I'm trying to come up with a relatively simple multi-master replication solution. This is for multiple databases that need to be discreet, and change relatively infrequently (10-30 updates...
7
by: silverburgh.meryl | last post by:
Hi, I read the following code which open a server socket for client request. However, i would like to know how can I change it so that i just listen for client requestfor 10 seconds, after...
15
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello everyone, I have this code for TCPListenPort. The code works fine, but my manager is asking me to establish multiple connections to the same port. How can i acheive that below is my...
12
by: Zytan | last post by:
I have a Timer class set to trigger every second. The Tick function that is called every second uses a lock to prevent multiple ticks from executing the same code at the same time. The code...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.