mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
usrsock: combine response and events when socket setup case
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user