Just wondering if anyone has had any luck using TCP and UDP at the same time. I have projects that use each separately, but now when I try to do both at the same time, I can only get one type or the other to work.
I assume you have 2 sockets open.
Are you using different port numbers?
When you try both, do you get any errors or does it just do nothing?
Are you running out of memory?
Is your project loading in RAM or Flash?
In the mean time I've gotten the quote of the day demo out of the RTCS user's guide to work , which opens a TCP and UDP socket both on port 17, so I can see that it is certainly possible.
In my real project, I try open the two the two sockets in separate tasks, and whichever task I start first, that socket works correctly. The second socket just seems to do nothing. Also in my real project, I use different port numbers for the two sockets.
My project loads in flash, and I am not sure how to tell if I am running out of memory, but I did try to reducing the TCP send and receive buffers to 256 bytes each from their 4k defaults, but that had no effect.
Retrieving data ...