UDP Issues?

Are there any known “issues” with programming UDP sockets under
QNX6? The perl test suite fails in a couple places while testing
UDP functionality, and I thought I’d check before spending too
much time digging into it.

[Please copy reply to e-mail, or I’ll forget I ever asked]

First make sure you’re using the full stack.

Second, I seem to recall perl hitting the following:

There was a bug in the stack for a while where if the
last argument to recvfrom() was less on return from the
function than the value you passed in (it’s a value
result parameter), the data was returned at the wrong offset.

So since this is an AF_INET socket, make sure fromlen
is initialized as:

char from[100]; /* for example */
fromlen = sizeof(struct sockaddr_in);

not:

fromlen = sizeof(from)


This is fixed for 6.2.

-seanb

Norton Allen <allen@huarp.harvard.edu> wrote:
: Are there any known “issues” with programming UDP sockets under
: QNX6? The perl test suite fails in a couple places while testing
: UDP functionality, and I thought I’d check before spending too
: much time digging into it.

: [Please copy reply to e-mail, or I’ll forget I ever asked]

This appears to be the cause of the test failure. Thank you
very much. -Norton

Sean Boudreau wrote:

First make sure you’re using the full stack.

Second, I seem to recall perl hitting the following:

There was a bug in the stack for a while where if the
last argument to recvfrom() was less on return from the
function than the value you passed in (it’s a value
result parameter), the data was returned at the wrong offset.

So since this is an AF_INET socket, make sure fromlen
is initialized as:

char from[100]; /* for example */
fromlen = sizeof(struct sockaddr_in);

not:

fromlen = sizeof(from)

This is fixed for 6.2.

-seanb

Norton Allen <> allen@huarp.harvard.edu> > wrote:
: Are there any known “issues” with programming UDP sockets under
: QNX6? The perl test suite fails in a couple places while testing
: UDP functionality, and I thought I’d check before spending too
: much time digging into it.

: [Please copy reply to e-mail, or I’ll forget I ever asked]

Is the multicast bug solved in 6.1A ??

Armin


Sean Boudreau wrote:

First make sure you’re using the full stack.

Second, I seem to recall perl hitting the following:

There was a bug in the stack for a while where if the
last argument to recvfrom() was less on return from the
function than the value you passed in (it’s a value
result parameter), the data was returned at the wrong offset.

So since this is an AF_INET socket, make sure fromlen
is initialized as:

char from[100]; /* for example */
fromlen = sizeof(struct sockaddr_in);

not:

fromlen = sizeof(from)

This is fixed for 6.2.

-seanb

Norton Allen <> allen@huarp.harvard.edu> > wrote:
: Are there any known “issues” with programming UDP sockets under
: QNX6? The perl test suite fails in a couple places while testing
: UDP functionality, and I thought I’d check before spending too
: much time digging into it.

: [Please copy reply to e-mail, or I’ll forget I ever asked]

Yes.

-seanb

Armin Steinhoff <a-steinhoff@web_.de> wrote:

: Is the multicast bug solved in 6.1A ??

: Armin