Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Commit 1fa8a87

Browse files
committed
2008-01-22 Aaron Bockover <[email protected]>
* configure.ac: Bump to 0.7.4 * Makefile.am * README.Windows: Added information about Bonjour for Windows * src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour/BrowseService.cs: Fix a bad bug where we were reading the raw IP address binary blob as a signed integer. IP addresses are unsigned. This manifested in bad ways on at least Windows XP SP2, but was covered up in Mono due to the casting that went on underneath the hood (Int32->Int64); thanks to Chris Williams for uncovering the problem svn path=/trunk/Mono.Zeroconf/; revision=93612
1 parent f119ca3 commit 1fa8a87

File tree

5 files changed

+34
-4
lines changed

5 files changed

+34
-4
lines changed

Diff for: ChangeLog

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2008-01-22 Aaron Bockover <[email protected]>
2+
3+
* configure.ac: Bump to 0.7.4
4+
5+
* Makefile.am
6+
* README.Windows: Added information about Bonjour for Windows
7+
8+
* src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour/BrowseService.cs:
9+
Fix a bad bug where we were reading the raw IP address binary blob as a
10+
signed integer. IP addresses are unsigned. This manifested in bad ways
11+
on at least Windows XP SP2, but was covered up in Mono due to the
12+
casting that went on underneath the hood (Int32->Int64); thanks to
13+
Chris Williams for uncovering the problem
14+
115
2008-01-08 Aaron Bockover <[email protected]>
216

317
* src/MZClient/ZeroconfClient.cs: Fix a minor bug found by

Diff for: Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dist-windows: all
2222
@rm -rf $(PKV) && \
2323
mkdir -p $(PKV)/bin && \
2424
cp src/MZClient/MZClient.exe src/Mono.Zeroconf/Mono.Zeroconf.dll src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour.dll $(PKV)/bin && \
25-
cp AUTHORS NEWS README $(PKV) && \
25+
cp AUTHORS NEWS README README.Windows $(PKV) && \
2626
cp COPYING $(PKV)/LICENSE && \
2727
zip -r9 $(PKV).zip $(PKV) && \
2828
rm -rf $(PKV)

Diff for: README.Windows

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
To run Mono.Zeroconf properly on Windows, Apple's Bonjour must be installed
2+
first. For licensing reasons, we cannot bundle Bonjour with Mono.Zeroconf.
3+
4+
Bonjour for Windows can be downloaded here:
5+
6+
http://www.apple.com/support/downloads/bonjourforwindows.html
7+
8+
After installing Bonjour, applications using Mono.Zeroconf should work
9+
properly on Windows.
10+
11+
The MZClient.exe program can be used to test Mono.Zeroconf and Bonjour
12+
in general.
13+

Diff for: configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([Mono.Zeroconf], [0.7.3])
1+
AC_INIT([Mono.Zeroconf], [0.7.4])
22
AC_CANONICAL_SYSTEM
33
AC_PREREQ(2.13)
44
AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar])

Diff for: src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour/BrowseService.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ private void OnQueryRecordReply(ServiceRef sdRef, ServiceFlags flags, uint inter
129129
break;
130130
}
131131

132-
IPAddress address = new IPAddress(Marshal.ReadInt32(rdata));
133-
132+
byte [] address_raw = new byte[4];
133+
Marshal.Copy(rdata, address_raw, 0, 4);
134+
IPAddress address = new IPAddress(address_raw);
135+
134136
if(hostentry == null) {
135137
hostentry = new IPHostEntry();
136138
hostentry.HostName = hosttarget;
@@ -169,3 +171,4 @@ public bool IsResolved {
169171
}
170172
}
171173
}
174+

0 commit comments

Comments
 (0)