fleet_message_all_nodes_sync   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/fleet.xtm

Implementation

(bind-func fleet_message_all_nodes_sync
  (let ((buf:i8* (zalloc (* FLEET_NODE_MAX FLEET_NANOMSG_CLIENT_BUFLEN))))
    (lambda (msg:i8*)
      (if (null? FLEET_NODE_SOCKET_LIST)
          (println "Error: FLEET_NODE_SOCKET_LIST is null.")
          (let ((sz_msg (+ (strlen msg) 1)))
            ;; send out the messages (scatter)
            (for-each (lambda (sock)
                        (nn_sock_set_timeout sock 1000)
                        (nn_send sock msg sz_msg NN_DONTWAIT))
                      FLEET_NODE_SOCKET_LIST)
            ;; wait to recieve on all sockets (gather)
            (for-each (lambda (sock)
                        (let ((offset (* (index_of sock FLEET_NODE_SOCKET_LIST)
                                         FLEET_NANOMSG_CLIENT_BUFLEN))
                              (rbytes (nn_recv sock (pref-ptr buf offset) FLEET_NANOMSG_CLIENT_BUFLEN 0)))
                          (if (> rbytes 0)
                              (begin (printf "[%d] %s\n" sock (pref-ptr buf offset))
                                     void))))
                      FLEET_NODE_SOCKET_LIST))))))


Back to Index

Similar Entries

  • AudioBuffer_malloc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • PaStreamCallbackTimeInfo_print    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portaudio.xtm
  • PaStreamCallbackTimeInfo_toString    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portaudio.xtm
  • Pm_Event_Message    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • Pm_Message    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • Pm_Message_Channel    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • Pm_Message_Data1    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • Pm_Message_Data2    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • Pm_Message_Status    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • Pm_Message_Type    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • Valloc    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Vsetall    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • _glib_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/slideshow.xtm
  • _glib_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • _glib_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo.xtm
  • _gst_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mediaplayer.xtm
  • _playbin_bus_call:GstBusFunc    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mediaplayer.xtm
  • async    xtlang    /digego/extempore/tree/v0.8.9/libs/core/xthread.xtm
  • async    xtlang    /digego/extempore/tree/v0.8.9/libs/core/xthread.xtm
  • async_done    xtlang    /digego/extempore/tree/v0.8.9/libs/core/xthread.xtm
  • async_kill    xtlang    /digego/extempore/tree/v0.8.9/libs/core/xthread.xtm
  • audio_callback:PaStreamCallback    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/portaudio.xtm
  • audio_callback:PaStreamCallback    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/portaudio.xtm
  • call-as-xtlang    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • call-as-xtlang-leaky    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • call-cpp    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • call-with-input-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • call-with-output-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • call/cc    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • call_object    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • callback    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • callback-adapter    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • callback-test2-helper    xtlang    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • callback_goodbye_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • callback_hello_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • cef_string_userfree_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • clock-runsync    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • clock:sync-adjust    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • clock_scheduler_main_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • curl_write_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • fleet-connect    scheme    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet-eval    scheme    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet-killemall    scheme    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_connect_to_nodes    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_delete_unit    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_api    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_ip_list    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_machines    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_units    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_message_node_sync    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_machines    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_unit    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_unit_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_units    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_response_error_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_set_unit_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_set_unit_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_submit_extempore_service    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • gboolean_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gboolean_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gboolean_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gboxed_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gboxed_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gboxed_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gchar_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gchar_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gchar_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gdouble_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gdouble_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gdouble_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gfloat_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gfloat_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gfloat_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gint64_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gint64_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gint64_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gint_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gint_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gint_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • glfw_char_callback:GLFWcharfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_cursor_position_callback:GLFWcursorposfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_error_callback:GLFWerrorfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_key_callback:GLFWkeyfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_window_focus_callback:GLFWwindowfocusfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_window_position_callback:GLFWwindowposfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glong_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • glong_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • glong_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gobject_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gobject_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gobject_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • godot_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • godot_call    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • godot_call    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • godot_call    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • godot_call    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • godot_method_bind_call    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • godot_method_bind_ptrcall    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • gpointer_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gpointer_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gpointer_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gstring_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gstring_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gstring_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guchar_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guchar_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guchar_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gui_window_size_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • guint64_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint64_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint64_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gulong_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gulong_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • gulong_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • impc:ir:compiler:callback    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:fptrcall    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:heap-alloc    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:heap-alloc-with-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:heap-alloc-without-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:native-call    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:stack-alloc    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:stack-alloc-with-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:stack-alloc-without-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:zone-alloc    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:zone-alloc-with-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:zone-alloc-without-size    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:function-calling-convention    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:allocate-var?    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:allocate-var?    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:callback    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:callback-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:clear-all-vars    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:closure-call-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:find-all-vars    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:fptrcall-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:fptrcall-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:gather-all-gvars    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:gather-all-gvars-helper    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:heap-alloc-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:rename-all-shadow-vars    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:stack-alloc-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:zone-alloc-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • ipc:call    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • ipc:mapcall    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • ipc:sync-receive    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • lilv_print_all_lv2_plugins    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/lilv.xtm
  • lilv_print_all_plugin_ports    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/lilv.xtm
  • listener-callback    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • multi_replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/cas.xtm
  • on_process_message_received    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • playbin_bus_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo.xtm
  • playbin_bus_call:GstBusFunc    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • print_all_devices    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/hidapi.xtm
  • regex:replace-all    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • regex_replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • regex_replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • remove-all    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • replace-all    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • replace_all    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • rtmidi_default_callback:RtMidiCCallback    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/rtmidi.xtm
  • rtmidi_process_message    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/rtmidi.xtm
  • rtmidi_register_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/rtmidi.xtm
  • send_process_message    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • stbi_flip_vertically    xtlang    /digego/extempore/tree/v0.8.9/libs/external/stb_image.xtm
  • suppress-compiler-messages    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • sync-server-receive    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • sys_file_datasync    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_datasync    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_sync    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • testitall    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • thread_native_call    xtlang    /digego/extempore/tree/v0.8.9/libs/core/xthread.xtm
  • thread_native_call_with_zone    xtlang    /digego/extempore/tree/v0.8.9/libs/core/xthread.xtm
  • topclock-sync    scheme    /digego/extempore/tree/v0.8.9/libs/core/topclock.xtm
  • toplap-clock-sync    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • xtmdoc-all-doc-alists    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm