|
|
@ -699,6 +699,9 @@ WebsocketListener::WebsocketListener(const struct sockaddr *listenaddr,
|
|
|
|
pthread_create(&tid, NULL, start_server, NULL);
|
|
|
|
pthread_create(&tid, NULL, start_server, NULL);
|
|
|
|
|
|
|
|
|
|
|
|
uint16_t *nport = (uint16_t *) calloc(1, sizeof(uint16_t));
|
|
|
|
uint16_t *nport = (uint16_t *) calloc(1, sizeof(uint16_t));
|
|
|
|
|
|
|
|
if (rfb::Server::udpPort)
|
|
|
|
|
|
|
|
*nport = rfb::Server::udpPort;
|
|
|
|
|
|
|
|
else
|
|
|
|
*nport = ntohs(sa.u.sin.sin_port);
|
|
|
|
*nport = ntohs(sa.u.sin.sin_port);
|
|
|
|
pthread_create(&tid, NULL, udpserver, nport);
|
|
|
|
pthread_create(&tid, NULL, udpserver, nport);
|
|
|
|
}
|
|
|
|
}
|
|
|
|