Do I have to do anything to specifically make the asyncore client to send the PeerName when establishing a connection?
No, you don't, because TCP clients don't send names when establishing a connection. They send addresses.
GetTCPPeerName
is almost certainly calling gethostbyaddr(X)
, where X
is the address returned by GetTCPPeerAddr
. In your case gethostbyaddr()
is failing because the information is not available.
This means that your hostname resolution database is missing some data -- you might need to update your DNS, your hosts file, your WINS data, or wherever your host name data lives.