zhhyu7 commented on code in PR #21418:
URL: https://github.com/apache/nuttx/pull/21418#discussion_r4463573156
##########
net/local/local_bind.c:
##########
@@ -100,6 +100,27 @@ int psock_local_bind(FAR struct socket *psock,
strlcpy(conn->lc_path, &unaddr->sun_path[index], sizeof(conn->lc_path));
+#ifdef CONFIG_NET_LOCAL_DGRAM
+ if (psock->s_type == SOCK_DGRAM)
+ {
+ int ret;
+
+ ret = local_create_halfduplex(conn, conn->lc_path, conn->lc_rcvsize);
+ if (ret < 0)
+ {
+ return ret;
+ }
+
+ ret = local_open_receiver(conn,
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]