]> source.dussan.org Git - tigervnc.git/commit
Resurrect TcpListener::getMyAddresses()
authorPierre Ossman <ossman@cendio.se>
Tue, 17 Mar 2015 12:39:39 +0000 (13:39 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 17 Mar 2015 16:18:50 +0000 (17:18 +0100)
commit57cab51d83629ee7e0ede8eaa869453cc9231434
treea829392a6cf8003778fce30ecfca2570954d91ca
parent9d78440b8354ae81f3fc094569f710c27f3ad0e6
Resurrect TcpListener::getMyAddresses()

It is needed by WinVNC, but got removed in 892d10a70. Also fix
a couple of issues:

 - Use getnameinfo() in order to be compatible with Windows XP
 - Make it static since it doesn't use a specific socket
 - Respect UseIPv4 and UseIPv6
 - Flags for getaddrinfo() that match binding code
 - Dummy service value for Windows compatibility
common/network/TcpSocket.cxx
common/network/TcpSocket.h
win/winvnc/VNCServerWin32.cxx