Lines 54-59
Link Here
|
54 |
#include "services/service_lpd.h" |
54 |
#include "services/service_lpd.h" |
55 |
#include "services/service_process.h" |
55 |
#include "services/service_process.h" |
56 |
#include "services/service_process_vncviewer.h" |
56 |
#include "services/service_process_vncviewer.h" |
|
|
57 |
#include "services/service_process_remote_port_forwarding.h" |
57 |
|
58 |
|
58 |
#ifdef __APPLE__ |
59 |
#ifdef __APPLE__ |
59 |
#include <CoreFoundation/CoreFoundation.h> |
60 |
#include <CoreFoundation/CoreFoundation.h> |
Lines 2175-2181
Link Here
|
2175 |
|
2176 |
|
2176 |
logfile.Log("PulseAudio pid is " + TLUtils::LongToString(pulseaudio_pid), 3); |
2177 |
logfile.Log("PulseAudio pid is " + TLUtils::LongToString(pulseaudio_pid), 3); |
2177 |
|
2178 |
|
2178 |
services.push_back(new ServiceProcess(stdout_fd, stderr_fd, "pulseaudio")); |
2179 |
services.push_back(new ServiceProcessRemotePortForwarding(agent_tunnel, local_pulse_port, |
|
|
2180 |
stdout_fd, stderr_fd, "pulseaudio")); |
2179 |
|
2181 |
|
2180 |
oldpath = LD_LIBRARY_PATH "=" + oldpath; |
2182 |
oldpath = LD_LIBRARY_PATH "=" + oldpath; |
2181 |
putenv(strdup(oldpath.c_str())); |
2183 |
putenv(strdup(oldpath.c_str())); |
Lines 2188-2197
Link Here
|
2188 |
} catch (TLException e) { |
2190 |
} catch (TLException e) { |
2189 |
throw TLException(ERR_PULSE_ERROR, string(_("Couldn't start pulseaudio")) + ": " + e.message()); |
2191 |
throw TLException(ERR_PULSE_ERROR, string(_("Couldn't start pulseaudio")) + ": " + e.message()); |
2190 |
} |
2192 |
} |
2191 |
services.push_back(new ServiceProcess(pulseproc->hOutputRead, |
|
|
2192 |
pulseproc->hErrorRead, |
2193 |
"pulseaudio")); |
2194 |
|
2193 |
|
|
|
2194 |
services.push_back(new ServiceProcessRemotePortForwarding(agent_tunnel, local_pulse_port, |
2195 |
pulseproc->hOutputRead, pulseproc->hErrorRead, "pulseaudio")); |
2196 |
|
2195 |
#endif // WIN32 |
2197 |
#endif // WIN32 |
2196 |
|
2198 |
|
2197 |
} |
2199 |
} |
Lines 2279-2285
Link Here
|
2279 |
|
2281 |
|
2280 |
logfile.Log("smart card daemon pid is " + TLUtils::LongToString(smartcard_pid), 3); |
2282 |
logfile.Log("smart card daemon pid is " + TLUtils::LongToString(smartcard_pid), 3); |
2281 |
|
2283 |
|
2282 |
services.push_back(new ServiceProcess(stdout_fd, stderr_fd, "pcsctun")); |
2284 |
services.push_back(new ServiceProcessRemotePortForwarding(agent_tunnel, local_smartcard_port, |
|
|
2285 |
stdout_fd, stderr_fd, "pcsctun")); |
2283 |
|
2286 |
|
2284 |
#else |
2287 |
#else |
2285 |
|
2288 |
|
Lines 2289-2297
Link Here
|
2289 |
} catch (TLException e) { |
2292 |
} catch (TLException e) { |
2290 |
throw TLException(ERR_SMARTCARD_ERROR, string(_("Couldn't start smart card daemon")) + ": " + e.message()); |
2293 |
throw TLException(ERR_SMARTCARD_ERROR, string(_("Couldn't start smart card daemon")) + ": " + e.message()); |
2291 |
} |
2294 |
} |
2292 |
services.push_back(new ServiceProcess(smartcard_proc->hOutputRead, |
2295 |
services.push_back(new ServiceProcessRemotePortForwarding(agent_tunnel, local_smartcard_port, |
2293 |
smartcard_proc->hErrorRead, |
2296 |
smartcard_proc->hOutputRead, smartcard_proc->hErrorRead, "pcsctun")); |
2294 |
"pcsctun")); |
|
|
2295 |
#endif // WIN32 |
2297 |
#endif // WIN32 |
2296 |
|
2298 |
|
2297 |
} |
2299 |
} |
Lines 2420-2426
Link Here
|
2420 |
|
2422 |
|
2421 |
logfile.Log("unfsd pid is " + TLUtils::LongToString(unfsd_pid), 3); |
2423 |
logfile.Log("unfsd pid is " + TLUtils::LongToString(unfsd_pid), 3); |
2422 |
|
2424 |
|
2423 |
services.push_back(new ServiceProcess(stdout_fd, stderr_fd, "unfsd")); |
2425 |
services.push_back(new ServiceProcessRemotePortForwarding(agent_tunnel, local_nfs_port, |
|
|
2426 |
stdout_fd, stderr_fd, "unfsd")); |
2424 |
|
2427 |
|
2425 |
#else |
2428 |
#else |
2426 |
|
2429 |
|
Lines 2430-2438
Link Here
|
2430 |
} catch (TLException e) { |
2433 |
} catch (TLException e) { |
2431 |
throw TLException(ERR_PROCESS_ERROR, string(_("Couldn't start unfsd")) + ": " + e.message()); |
2434 |
throw TLException(ERR_PROCESS_ERROR, string(_("Couldn't start unfsd")) + ": " + e.message()); |
2432 |
} |
2435 |
} |
2433 |
services.push_back(new ServiceProcess(unfsd_process->hOutputRead, |
2436 |
services.push_back(new ServiceProcessRemotePortForwarding(agent_tunnel, local_nfs_port, |
2434 |
unfsd_process->hErrorRead, |
2437 |
unfsd_process->hOutputRead, unfsd_process->hErrorRead, "unfsd")); |
2435 |
"unfsd")); |
|
|
2436 |
|
2438 |
|
2437 |
#endif /* WIN32 */ |
2439 |
#endif /* WIN32 */ |
2438 |
|
2440 |
|
Lines 2509-2515
Link Here
|
2509 |
|
2511 |
|
2510 |
logfile.Log("sercd pid is " + TLUtils::LongToString(sercd_pids[devnum]), 3); |
2512 |
logfile.Log("sercd pid is " + TLUtils::LongToString(sercd_pids[devnum]), 3); |
2511 |
|
2513 |
|
2512 |
services.push_back(new ServiceProcess(stdout_fd, stderr_fd, "sercd")); |
2514 |
services.push_back(new ServiceProcessRemotePortForwarding(agent_tunnel, local_serial_ports[devnum], |
|
|
2515 |
stdout_fd, stderr_fd, "sercd")); |
2513 |
#else |
2516 |
#else |
2514 |
try { |
2517 |
try { |
2515 |
// Show console window if loglevel => 5 |
2518 |
// Show console window if loglevel => 5 |
Lines 2517-2525
Link Here
|
2517 |
} catch (TLException e) { |
2520 |
} catch (TLException e) { |
2518 |
throw TLException(ERR_PROCESS_ERROR, string(_("Couldn't start sercd")) + ": " + e.message()); |
2521 |
throw TLException(ERR_PROCESS_ERROR, string(_("Couldn't start sercd")) + ": " + e.message()); |
2519 |
} |
2522 |
} |
2520 |
services.push_back(new ServiceProcess(sercd_processes[devnum]->hOutputRead, |
2523 |
services.push_back(new ServiceProcessRemotePortForwarding(agent_tunnel, local_serial_ports[devnum], |
2521 |
sercd_processes[devnum]->hErrorRead, |
2524 |
sercd_processes[devnum]->hOutputRead, |
2522 |
"sercd")); |
2525 |
sercd_processes[devnum]->hErrorRead, "sercd")); |
2523 |
|
2526 |
|
2524 |
#endif /* WIN32 */ |
2527 |
#endif /* WIN32 */ |
2525 |
|
2528 |
|