[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getpeername(fd,NULL,NULL) crashes
From: |
Samuel Thibault |
Subject: |
Re: getpeername(fd,NULL,NULL) crashes |
Date: |
Thu, 11 Aug 2005 02:09:11 +0200 |
User-agent: |
Mutt/1.5.9i-nntp |
Samuel Thibault, le Thu 11 Aug 2005 01:42:41 +0200, a écrit :
> so that getpeername(fd, NULL, NULL); crashes (while it is a common way
> to determine whether an fd is a socket).
Err: please read socklen_t len; getpeername(fd, NULL, &len); of course.
Regards,
Samuel