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 create tcp sever



Hi,

i'm using the following platform:

- tirtos_tivac_2.10.01.38

- CCS  6.0.1.00040

- xdctools_3_30_06_67_core

i have an application that require client server action in the same code, such that i can send/receive in the same time either using UDP/TCP socket.

so i'm interest in the polling scheme for the socket status, i don't want to pend for ever on a specific status, for example "recv" function will pend for ever till receiving something for the peer while i need to check if i received something or not then if not, i will check if i have something to be sent.

So i checked many demos like tcpecho and udpecho but all of them doesn't demonstrate what i want to do.

so first: is there a way to use the polling scheme for the socket function like recv, accept, etc.

second, do you have any demo that demonstrate the client-server action in the same code not the echo example.

Thanks,

Mohamed Fawzy