[net][at] Fix at_recvfrom() select event issue

Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
chenyong 2018-11-29 18:55:14 +08:00
parent 07fce42479
commit 37a3a03e33

View File

@ -622,6 +622,9 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f
goto __exit;
}
sock->state = AT_SOCKET_CONNECT;
/* set AT socket receive data callback function */
at_dev_ops->at_set_event_cb(AT_SOCKET_EVT_RECV, at_recv_notice_cb);
at_dev_ops->at_set_event_cb(AT_SOCKET_EVT_CLOSED, at_closed_notice_cb);
}
/* socket passively closed, receive function return 0 */