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 running a sender thread and a receiver thread over the same port

Hi,

  I am trying to run a sender thread and receiver thread over the same port.  Each thread would transmit or recive async.  I tried using the parent child paradigm with the parent thread connecting to the socket and then creating the sending thread and receiving thread.  This does not work for some reason.  I get back a value of -1 each time.  Is there a way to do this or do I have to run on seperate ports?

Will