-
Notifications
You must be signed in to change notification settings - Fork 100
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
Server's engine does not notify server when a configuration has changed #325
Comments
A nicer solution (IMO) would be to send a notification message through the callers pipe. |
I am a bit unsure about the terminology here. Or do you mean to exploit the server_method function? |
The generated server is a czmq actor and thus owns a pipe to its caller. (see https://github.com/zeromq/zproto/blob/master/src/zproto_server_c.gsl#L275) Through that pipe the user can enable verbose logging, set the binding endpoint, etc (see https://github.com/zeromq/zproto/blob/master/src/zproto_server_c.gsl#L875). And through this pipe the server could notify the caller about configuration changes! I hope the clarifies it :) |
Still confused, sorry. |
Okay, now I understand your problem. Server custom part vs server generated part is fine as terminology. To inform the server custom part from the server generated part (aka. server engine) a callback method would be useful indeed. I though that you were trying to inform the user of the server (custom + generated). So forget about the pipe idea ;) |
It might be useful if server's engine generated with zproto_server_c.gsl could call a user defined function when one or more configuration parameter changes. Now it calls only functions internal to engine.
The text was updated successfully, but these errors were encountered: