Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

None sender data in recvfrom

Altera_Forum
Honored Contributor II
1,103 Views

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: 

 

0 Kudos
0 Replies
Reply