rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

函数at_poll调用sal_get_socket函数获取不到正确的socket号,导致只能使用一个socket通信

Open youzuwei opened this issue 1 year ago • 0 comments

版本v5.0.2 文件af_inet_at.c文件中 函数static int at_poll(struct dfs_file *file, struct rt_pollreq *req)中调用函数sal_sock = sal_get_socket((int) file->data)获取sal_sock 号不正确,应该改为sal_sock = sal_get_socket((int) file->vnode->data);因为在申请socket的时候,申请到的socket号保存到 file->vnode->data这个参数中。

youzuwei avatar Dec 15 '23 10:12 youzuwei