[Mono-list] UnixEndPoint issues

Philipp Baer phbaer at npw.net
Mon Mar 6 06:33:54 EST 2006


Hi,

I'd like to provide a small patch for UnixEndPoint.cs which
adapts its behavior to the other .NET endpoint classes.

The UnixEndPoint included in the current SVN head returns
a new hash code for each new instance, even if the filename
is the same (thus, a hash based on the address, I suppose).
It would be much more straightforward to return the hash
of the filename.

I've attached the patch and am waiting for comments now :)


ciao, phb

bwt: Could anybody please check if ipv6 is working in
the current stable mono version (i.e. 1.1.13.4)? It's
not working here since the configuration patch was
added.

-- 
Philipp Baer <phbaer at npw.net> [http://www.npw.net/]
--------------- contact information ---------------
mobile |+49-179-488 26 63|  fax |+49-561-804 62 77|
most current contact details  |'whois pb4412-ripe'|
---------------- gnupg-fingerprint ----------------
|16C7 84E8 5C5F C3D6 A8F1 A4DC E4CB A9A9 F5FA FF5D|
-------------- next part --------------
Index: UnixEndPoint.cs
===================================================================
--- UnixEndPoint.cs	(revision 57605)
+++ UnixEndPoint.cs	(working copy)
@@ -93,6 +95,10 @@
 		public override string ToString() {
 			return(filename);
 		}
+
+		public override int GetHashCode() {
+			return filename.GetHashCode();
+		}
 	}
 }
 


More information about the Mono-list mailing list