Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: After bind function, the source port still incorrect in UDP?

$
0
0

Hello Pedro,

About your request, the answer is no.

CC3000 will always reply 1501 port to PC 1234, not 8888 anymore.

I try to let CC3000 reply the data with port 8888.

But it always return to PC by using src port 1501,

Whatever every time I reboot, it seems CC3000 reply always assign 1501 as source port.

I have some question about socketaddr and socketaddr_in, since there is not some full explain about the parameter.

Does any setting of socketaddr was setting about source port?

My request is when CC3000 get the data from PC, then send back the data,

the data using source port just like I bind the port to receive,

Can I do that?

1. PC(port 1234) send UDP data to CC3000(port 8888),

2. CC3000(port 8888) reply to PC(1234)

Which part I missed?

David


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>