vncserver.cc (12334:e0ab29a34764) | vncserver.cc (12693:4db8d6442b44) |
---|---|
1/* 2 * Copyright (c) 2010, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 160 unchanged lines hidden (view full) --- 169 170 while (!listener.listen(port, true)) { 171 DPRINTF(VNC, 172 "can't bind address vnc server port %d in use PID %d\n", 173 port, getpid()); 174 port++; 175 } 176 | 1/* 2 * Copyright (c) 2010, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 160 unchanged lines hidden (view full) --- 169 170 while (!listener.listen(port, true)) { 171 DPRINTF(VNC, 172 "can't bind address vnc server port %d in use PID %d\n", 173 port, getpid()); 174 port++; 175 } 176 |
177 int p1, p2; 178 p2 = name().rfind('.') - 1; 179 p1 = name().rfind('.', p2); 180 ccprintf(cerr, "Listening for %s connection on port %d\n", 181 name().substr(p1 + 1, p2 - p1), port); | 177 ccprintf(cerr, "%s: Listening for connections on port %d\n", 178 name(), port); |
182 183 listenEvent = new ListenEvent(this, listener.getfd(), POLLIN); 184 pollQueue.schedule(listenEvent); 185} 186 187// attach a vnc client 188void 189VncServer::accept() --- 556 unchanged lines hidden --- | 179 180 listenEvent = new ListenEvent(this, listener.getfd(), POLLIN); 181 pollQueue.schedule(listenEvent); 182} 183 184// attach a vnc client 185void 186VncServer::accept() --- 556 unchanged lines hidden --- |