I've been doing some related work to this on detecting if the screen sharing service is enabled. What I found was that on 10.11 machines there are no processes to be found. However when a screen sharing session is started, this process is spawned.
It may make for an less computationally expensive way to detect sessions than running lsof commands every 12 seconds. Anyway, just a quick finding from me!
Hi mate, Long time no see!
I've been doing some related work to this on detecting if the screen sharing service is enabled. What I found was that on 10.11 machines there are no processes to be found. However when a screen sharing session is started, this process is spawned.
/System/Library/CoreServices/RemoteManagement/screensharingd.bundle/Contents/MacOS/screensharingd
It may make for an less computationally expensive way to detect sessions than running lsof commands every 12 seconds. Anyway, just a quick finding from me!