unfortunately i dont know anything about sockets
but i can tell you that the *'s you have around server status
arent needed
if i followed you example correctly
was;
echo -a $iif($sockerr,$false,$true - $sock($sockname).ip)
meant to be;
echo -a $iif($sockerr,$true - $sock($sockname).ip,$false)
or better yet can you give a breakdown of what each line is supposed to accomplish
i'd appreciate it
pardon any ignorance ive displayed