Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在IOS上connect失败 #259

Open
ychellboy opened this issue Mar 13, 2017 · 0 comments
Open

在IOS上connect失败 #259

ychellboy opened this issue Mar 13, 2017 · 0 comments

Comments

@ychellboy
Copy link

移植了一个ios,但在增加ipv6支持后出现一个问题:
return ::connect(sockfd, addr, static_cast<socklen_t>(sizeof(struct sockaddr_in6))); 回返回errno 22: Invalid argument errno

以上代码改成:return ::connect(sockfd, addr, static_cast<socklen_t>(sizeof(*addr))); 后就正常了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant