summaryrefslogtreecommitdiffstats
path: root/vncviewer/vncviewer.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-05-03 14:03:55 +0200
committerPierre Ossman <ossman@cendio.se>2018-05-04 15:50:08 +0200
commite3a2be69c48893ef086110b8d92f1fadd004a997 (patch)
tree84bb7c421bf8a8d95cc615bf31a0464cd19c4c9d /vncviewer/vncviewer.cxx
parentf36078ad3f624400cb4e66aca95bf44d60348958 (diff)
downloadtigervnc-e3a2be69c48893ef086110b8d92f1fadd004a997.tar.gz
tigervnc-e3a2be69c48893ef086110b8d92f1fadd004a997.zip
Use abstract SocketListener class
Makes the code more general and not directly tied to specifically TCP sockets.
Diffstat (limited to 'vncviewer/vncviewer.cxx')
-rw-r--r--vncviewer/vncviewer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 413260d9..f22648d4 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -547,7 +547,7 @@ int main(int argc, char** argv)
#endif
if (listenMode) {
- std::list<TcpListener*> listeners;
+ std::list<SocketListener*> listeners;
try {
int port = 5500;
if (isdigit(vncServerName[0]))
@@ -561,7 +561,7 @@ int main(int argc, char** argv)
while (sock == NULL) {
fd_set rfds;
FD_ZERO(&rfds);
- for (std::list<TcpListener*>::iterator i = listeners.begin();
+ for (std::list<SocketListener*>::iterator i = listeners.begin();
i != listeners.end();
i++)
FD_SET((*i)->getFd(), &rfds);
@@ -576,7 +576,7 @@ int main(int argc, char** argv)
}
}
- for (std::list<TcpListener*>::iterator i = listeners.begin ();
+ for (std::list<SocketListener*>::iterator i = listeners.begin ();
i != listeners.end();
i++)
if (FD_ISSET((*i)->getFd(), &rfds)) {