[m-dev.] sockets

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Feb 20 06:25:14 AEDT 1999


On 19-Feb-1999, Erwan Jahier <Erwan.Jahier at irisa.fr> wrote:
> 
> According to what is said in:
> 
> http://coloris:8888/ab2/coll.45.4/TRANSPORTPG/@Ab2PageView/1045?DwebQuery=sockets#FirstHit

That URL doesn't work here: `coloris' doesn't specify a domain name,
and there's no such host `coloris.cs.mu.oz.au'.

But your diff below looks fine.

> +++ mercury_trace_external.c	1999/02/19 16:35:37
> @@ -217,7 +217,8 @@
>  		unix_address.sun_family = AF_UNIX;
>  		strcpy(unix_address.sun_path, unix_socket);
>  		addr = (struct sockaddr *) &unix_address;
> -		len = SUN_LEN(&unix_address);
> +		len = strlen(unix_address.sun_path) + 
> +			sizeof(unix_address.sun_family);
>  	} else {
>  		char hostname[255];
>  		char port_string[255];

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "Binaries may die
WWW: <http://www.cs.mu.oz.au/~fjh>  |   but source code lives forever"
PGP: finger fjh at 128.250.37.3        |     -- leaked Microsoft memo.



More information about the developers mailing list