gethostbyname(my_name) and IL2-Sturmovik
12 Dec
2005
12 Dec
'05
8:57 p.m.
Ok, I've just checked doing the same thing under windows. The test(ripdaveno is the name of the Computer I tested on): { ... hostent* h = gethostbyname("ripdaveno"); char* str = inet_ntoa(*((in_addr*)h->h_addr_list[0])); ... } The string in str was "192.168.2.75" which is my Network IP-Adress. With wine(under Linux), as far as I've tested it, exactly the same code always generates "127.0.0.1". Since Wine tries to simulate Windows as exactly as possible, this is wrong. So, in my opinion this Patch is necessary. :-) greetings, David Nolden
7307
Age (days ago)
7307
Last active (days ago)
0 comments
1 participants
participants (1)
-
David Nolden