I made the changes you suggested, but it is still not working. It still gives me thesethu_jangala wrote:For testing the application, I just did a small change to the code:
build the code using xmake from the command line and run the binary using the following command:Code: Select all
int main() { xscope_user_init(); unsigned sample=1; while (1) { sample++; xscope_int(0, sample); } return 0; }
Host side, change the hook_data_receive function as shown below:xrun --xscope-realtime --xscope-port 127.0.0.1:12346 Socket_test.xe
Run the host application using the following command:Code: Select all
void hook_data_received(int sockfd, int xscope_probe, void *data, int data_len) { // Do nothing int * a= (int *) data; printf("%d", *(a)); }
Note:First run the host application and then run the binary on the device../dsp_control -s 127.0.0.1 -p 12346
After running both the application you see the host receiving the data that is being sent by the device.
Hope this helps.
Sethu.
Code: Select all
ERROR: socket bind.(0)
ERROR: socket listen.(0)
ERROR: socket accept.(0)
I think I might backup my workspace and programs, then do a reinstall of Xtime Composer just to be sure that my installation isn't weird or something is messed up.