[Mono-list] UnixEndPoint

Gonzalo Paniagua Javier gonzalo at ximian.com
Thu Mar 9 11:58:35 EST 2006

On Mon, 2006-03-06 at 17:41 +0100, Philipp Baer wrote:
> Hi,
> it's me again. I came across another issue with UnixEndPoint:
> - the unix socket pathname in the sockaddr structure has to
>   be zero-terminated. I've modified the serialization method
>   so that a trailing zero is appended.
> - the pathname returned by a recvfrom call contains a trailing
>   zero which is preserved by the .NET string. This leads to
>   a different string and thus a different hash.
> I've attached the patch including the missing Equals method :)

Adding Equals() and GetHashCode() is ok, but I see no point in the other

As for the trailing zero, that might be a problem somewhere else. Can
you file a bug report with a test case that shows the problem or send it



More information about the Mono-list mailing list