MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / run

Method run

client/VGLTransReceiver.cpp:125–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125void VGLTransReceiver::run(void)
126{
127 Socket *socket = NULL; Listener *listener = NULL;
128
129 while(!deadYet)
130 {
131 try
132 {
133 listener = NULL; socket = NULL;
134 socket = listenSocket->accept(); if(deadYet) break;
135 vglout.println("++ Connection from %s.", socket->remoteName());
136 listener = new Listener(socket, drawMethod);
137 continue;
138 }
139 catch(std::exception &e)
140 {
141 if(!deadYet)
142 {
143 vglout.println("%s-- %s", GET_METHOD(e), e.what());
144 delete listener;
145 delete socket;
146 continue;
147 }
148 }
149 }
150 vglout.println("Listener exiting ...");
151 listenMutex.lock();
152 delete listenSocket; listenSocket = NULL;
153 listenMutex.unlock();
154}
155
156
157void VGLTransReceiver::Listener::run(void)

Callers

nothing calls this directly

Calls 14

sendFunction · 0.85
getenvFunction · 0.85
DisplayNumberFunction · 0.85
acceptMethod · 0.80
printlnMethod · 0.80
remoteNameMethod · 0.80
whatMethod · 0.80
drawFrameMethod · 0.80
lockMethod · 0.45
unlockMethod · 0.45
flushMethod · 0.45
getFrameMethod · 0.45

Tested by

no test coverage detected