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.

RTOS/F28M36H53C2: Can you bind ethernet socket in Network Open Hook ? (NDK-2-25-00-09)

Part Number: F28M36H53C2

Tool/software: TI-RTOS

Hi,

I have modified the UDP echo expample program to move the socket handling attribution and socket binding to a Network Open Hook function. It seems like by doing so, my select calls (done from a task, created like the example) doesn't return anymore.  Does the Network Open Hook need to return before I can actually bind the socket ? I don't get an error in the status returned by the binding... Here is the pseudocode:

int gSocketHandler;

void NetworkOpenHook(){

gsocketHandler = socket()

bind(gsocketHandler)

createEthernetTask()

}

void ethernetTask(){

while(1){

ret = select(gSocketHandler){

if(ret > 0) ... do stuff ... 

}

}