diff options
author | James Willcox <snopr@snorp.net> | 2005-09-09 23:48:54 +0000 |
---|---|---|
committer | James Willcox <snopr@snorp.net> | 2005-09-09 23:48:54 +0000 |
commit | a9566d5dcac080d7fa91546823277c57a5d09a5f (patch) | |
tree | 1e82d5702a3e2b6c1cd19193ca3b93d4e2f065d2 /avahi-sharp/AddressResolver.cs | |
parent | e85d5d77e2bc6f03c4146e747904488e830ec2c9 (diff) |
s/Host/HostName/ in a couple places, and keep references to callbacks to
avoid crashing
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@554 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-sharp/AddressResolver.cs')
-rw-r--r-- | avahi-sharp/AddressResolver.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/avahi-sharp/AddressResolver.cs b/avahi-sharp/AddressResolver.cs index 8a0b66b..6b0d030 100644 --- a/avahi-sharp/AddressResolver.cs +++ b/avahi-sharp/AddressResolver.cs @@ -41,6 +41,7 @@ namespace Avahi private int iface; private Protocol proto; private IPAddress address; + private AddressResolverCallback cb; private IPAddress currentAddress; private string currentHost; @@ -100,6 +101,7 @@ namespace Avahi this.iface = iface; this.proto = proto; this.address = address; + cb = OnAddressResolverCallback; } ~AddressResolver () @@ -119,7 +121,7 @@ namespace Avahi IntPtr addrPtr = Utility.StringToPtr (address.ToString ()); handle = avahi_address_resolver_new (client.Handle, iface, proto, addrPtr, - OnAddressResolverCallback, IntPtr.Zero); + cb, IntPtr.Zero); Utility.Free (addrPtr); } |