develooper Front page | perl.perl5.porters | Postings from August 2001

Re: Adding IPv6 to Perl

Thread Previous | Thread Next
From:
Graham Barr
Date:
August 20, 2001 10:53
Subject:
Re: Adding IPv6 to Perl
Message ID:
20010820184258.X7667@pobox.com
On Mon, Aug 20, 2001 at 10:34:44AM -0700, Gisle Aas wrote:
> Nick Ing-Simmons <nick@ing-simmons.net> writes:
> 
> > One does not allocate the struct sockaddr - one allocates what one has
> > and then casts the pointer.  Else how does sockaddr_un work ?
> 
> Actually, pp_accept allocate a struct sockaddr.  I still wonder if
> accept returning a sockaddr_un actually works.  I guess it "works
> enough" as people only care about the boolean value of its return
> value and never look into it.

getpeername also allocates a buffer for the return value. But is uses
a buffer of 256 bytes. pp_accept could do the same.

Graham.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About