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

address family not set in example #6

Closed
ghazel opened this issue Oct 3, 2011 · 2 comments
Closed

address family not set in example #6

ghazel opened this issue Oct 3, 2011 · 2 comments

Comments

@ghazel
Copy link

ghazel commented Oct 3, 2011

Here: https://github.com/nmathewson/libevent-book/blob/master/Ref6_bufferevent.txt#L271

The sockaddr_in is memset and the sin_addr and sin_port are set, but sin_family is not, leading to error 47 (Address family not supported by protocol family).

@errzey
Copy link
Contributor

errzey commented Oct 3, 2011

Good find. Since UNSPEC (0) is used, I'm fairly sure it was to show you could use any family; but in the example it is explicitly using ipv4 type settings. Patch here: #7

@nmathewson
Copy link
Member

merged patch from ellzey; thanks all!

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

No branches or pull requests

3 participants