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

Re: Adding IPv6 to Perl

Thread Previous | Thread Next
Graham Barr
August 20, 2001 10:53
Re: Adding IPv6 to Perl
Message ID:
On Mon, Aug 20, 2001 at 10:34:44AM -0700, Gisle Aas wrote:
> Nick Ing-Simmons <> 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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About