usrsock: combine response and events when socket setup case
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
c75253623d
commit
403c657f42
@ -79,6 +79,10 @@ static uint16_t socket_event(FAR struct net_driver_s *dev,
|
|||||||
|
|
||||||
conn->state = USRSOCK_CONN_STATE_READY;
|
conn->state = USRSOCK_CONN_STATE_READY;
|
||||||
conn->usockid = pstate->result;
|
conn->usockid = pstate->result;
|
||||||
|
if (flags & USRSOCK_EVENT_SENDTO_READY)
|
||||||
|
{
|
||||||
|
conn->flags |= USRSOCK_EVENT_SENDTO_READY;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stop further callbacks */
|
/* Stop further callbacks */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user