-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for smbclient_notify #29
Comments
hmm, ok, I will try to take a look at this soon, a bit busy this week as I will move next week. |
|
I think such callback make sense in long running process (CLI), not really in web env. |
Well, it would be nice if it kept the notifications on a queue for later consumption (with a configurable timeout, etc), but that means more code in samba :P |
Well, PHP can also be (ab)used as a tool to write CLI programs/daemons, so adding notify support is not totally crazy. I just wonder how hard it is to hook into the PHP event loop and issue a callback. It's certainly something that I have no experience with. |
Notice: the pecl/inotify ext use the "queue" way |
The smbclient
notify
command allows clients to get notified whenever a file or folder is changed on the server.From what I can tell this functionality is exposed as
smbc_setFunctionNotify
in libsmbclient in newer versions of smbclientThe text was updated successfully, but these errors were encountered: