[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: select/accept DECnet connection question ...
>
> Yep ... setting the 'master' socket to blocking immediately before the
> accept() and then setting it back immediately afterwards appears to
> work.
>
> I get a valid file descriptor returned from accept() now ... thanks!
>
>
Hmm. Thats good to know.. should make it much easier to track down :-)
[deleted text]
>
> status = getsockopt(file_desc,DNPROTO_NSP,SO_CONDATA,&optdata,&len);
>
[deleted text]
> ... Am I doing something wrong here? Do I have to do this on the master
> file descriptor before I do the accept() ?
>
>
> Thanks
>
> Rob.
>
I suspect that you are not setting len to sizeof(optdata) before calling
getsockopt(), len is value/result in my implementation... I don't know
if thats correct, without consulting the POSIX spec, but thats how it is
at the moment,
Steve.
-----------------------------------------------------------------------------
To unsubscribe from this list, send a mail to majordomo@dreamtime.org
containing the line "unsubscribe linux-decnet"
-----------------------------------------------------------------------------