This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NDK development problem



hi all,

I learned the NDK demo helloworld, I have a question.

we use NC_netstart() function to listen to the activity of the given port, when the given port receives data ,then send the data back. But if I want my DSP send data out first to my PC  , then what should I do and how to implement it ?

  • Hi Tain Eric,

    After NC_NetStart, you can pretty much have the DSP do anything you want within the NetworkOpen function. In the helloworld example, a Daemon server is opened and forever waits for data to be sent to the DSP (using recvncfrom). If you want the DSP server to send data out first, consider just putting send functions without waiting for data from recvncfrom.

    Alternatively, check out the NDK guides inside the ndk_2_xx_xx_xx/docs folder. Depending on what your end goal is, there's probably a number of ways to have the DSP send data to the PC. For example, using simple TCP connections instead of a Daemon server could work also if you know your PC/DSP's ip addresses and port numbers.

    -Ivan