in reply to Using sockaddr_in6 (bind)

saru:

$retVal1 is a different variable than $retVal. Perhaps correcting that will help you to the next step...

...roboticus