http://bugs.winehq.org/show_bug.cgi?id=7929
------- Additional Comments From d13f00l@gmail.com 2007-03-05 04:55 ------- As a side note, I believe this app is just doing a recv() in a loop every once in a while, like on some sort of timer. It doesn't seem to be using select(), so recv() returning -1 would be normal when there's no data to be read even once we do get this resolved.
It was ALMOST working when I pretty much forced wine's implementation of gethostname() to return a fake hostname I put in /etc/hosts that resolves to 0.0.0.0 It was showing other people in the server list, and actually showing created games, but it'd show 2 of my own user names in the chat room since it was recvmsg()ing it's own broadcasts.
Obviously that was just a hack and me playing around with debugging the problems. Your suggestion to modify gethostbyname() is much better :)