So confused about trigger_recv in inet_drv.c

Hello eveyone, I have been confused about trigger_recv in the inet_drv.c Driver, my question is why using it ?

The trigger_recv match is true when a socket was {active, false} and change to {active, once} or {active, N} (not to {active, true} !! ??) and it triggers here tcp_recv and this last should logically return 0 because the socket was passive and there is no data at this Socket and that results in sock_select so why all this or in other terms what’s the thing behind using this trigger_recv ?
And Thank you for all.

1 Like