You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any need to create accessors for more Lisp-style access to ZMQ socket options? I realized that my own code has the following snippet for setting multiple socket options at once:
(defunset-socket-options (socket &rest args)
(loop for (key value) on args by #'cddrdo (z:setsockopt socket key value)))
Another idea would be to create #'socket-option and #'(setf socket-option) for Lisp-style reader and writer.
The text was updated successfully, but these errors were encountered:
Note that with-socket (and with-sockets) allow setting many options at once, don't they cover your use case? I don't mind adding set-socket-options to the lisp-api, feel free to create such PR. socket-option on the other hand seems more confusing than useful since it duplicates getsockopt.
Is there any need to create accessors for more Lisp-style access to ZMQ socket options? I realized that my own code has the following snippet for setting multiple socket options at once:
Another idea would be to create
#'socket-option
and#'(setf socket-option)
for Lisp-style reader and writer.The text was updated successfully, but these errors were encountered: