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 ...
}
}