I have just checked the man pages and apparently getaddrinfo() doesn't mind hints.ai_family being set to AF_UNSPEC.In that case it will return both available IPv4 and IPv6 addresses...
Also when I...
Type: Posts; User: chaos5687
I have just checked the man pages and apparently getaddrinfo() doesn't mind hints.ai_family being set to AF_UNSPEC.In that case it will return both available IPv4 and IPv6 addresses...
Also when I...
Thnx for your help so far. I have just solved the problem. All I had to do was changing hints.ai_family from AF_UNSPEC to AF_INET...
Do you have any idea why that could be? I thought my code could...
I name it as "Other-pc", that worked on C# so I assumed it wouldn't cause any problems in C either.
It'd be great if you could give me an example on formatting the name :)
Do you mean...
Hi,
I have recently started network Programming for Linux (though I use windows, I believe it's still compatible via cygwin).
Anyways, I have a small code where I pass in the hostname and the...