Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

NetX #define NX_MAX_LISTEN_REQUESTS 10

$
0
0

Hello,

I am working with one Synergy S5D9 board.
In my project I need to communicate with several devices simultaneously through TCP communications. The program has several threads for different functionalities and one of them is the TCP communications, called devices_tcp_thread.
I have created 16 sockets to communicate with a maximum of 16 devices. The communications work for me at the same time, putting each socket in listening for different ports. The problem is that the maximum number of threads I can listen to is 10, because of the default #define NX_MAX_LISTEN_REQUESTS  10.

In the NetX User Guide, on page 34 says "The application can override the default by defining the value before nx_api.h is included.".

I put    #define NX_MAX_LISTEN_REQUESTS   16    in the first line of devices_tcp_thread_entry.c, but it does not work, keep allowing me only 10 listeners.

Where do I have to put the #define?? 

Thank you.

Hanton


Viewing all articles
Browse latest Browse all 5781

Trending Articles



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