Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

None sender data in recvfrom

Hi,

I've implemented a UDP server based on Iniche stack and uCOS.

It's work whitout problem:), I can receive data from a UDP client on remote PC but....but there is something stranges.:cry:

recvfrom has 6 parameters:

int recvfrom(int sd, void* buf, int n, int flags,

struct sockaddr* from, socklen_t *len);

in "from" data structure I should have the sender IP, but this structure is filled to zero.:eek:

I've experience with Linux and in Linux I can get data sender from this structure.

Where is my error?:confused:

No RepliesBe the first to reply