node_reply_loop   xtlang


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

Implementation

(bind-func node_reply_loop 30000
  (let ((buf:i8* (zalloc FLEET_NANOMSG_SERVER_BUFLEN))
        (repbufptr:i8** (zalloc)))
    (lambda ()
      (println "starting reply_loop...")
      (while FLEET_NANOMSG_SERVER_RUNNING
        (let ((reqbytes (nn_recv FLEET_NANOMSG_SERVER_SOCKET buf FLEET_NANOMSG_SERVER_BUFLEN 0)))
          (if (> reqbytes 0)
              (let ((bytes (node_reply_function buf FLEET_NANOMSG_SERVER_BUFLEN repbufptr)))
                (if (> bytes 0)
                    (if (< (nn_send FLEET_NANOMSG_SERVER_SOCKET (pref repbufptr 0) (+ 1 (convert bytes)) 0) 0)
                        (nn_println_strerror "error in node_reply_loop")))))))
      (println "stopping node_reply_loop"))))


Back to Index

Similar Entries

  • AudioBuffer_read_looped    xtlang
  • AudioBuffer_read_looped    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _gst_main_loop_call    xtlang
  • ai_build_node    xtlang
  • ai_find_matching_node    xtlang
  • beat_loop    xtlang
  • find_node    xtlang
  • fleet_connect_to_nodes    xtlang
  • fleet_message_all_nodes_sync    xtlang
  • fleet_message_node_sync    xtlang
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    xtlang
  • gl-loop    xtlang
  • gl-loop    xtlang
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    scheme
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • glib-main-loop    scheme
  • glib-main-loop    scheme
  • glib_main_loop    xtlang
  • godot_node_path_destroy    xtlang
  • godot_node_path_new    xtlang
  • godot_variant_new_node_path    xtlang
  • gst-main-loop    scheme
  • gui_render_loop    xtlang
  • impc:ir:compiler:loop    scheme
  • impc:ir:compiler:loop    scheme
  • impc:ir:compiler:while-loop    scheme
  • impc:ti:doloop    scheme
  • loop    scheme
  • loop    scheme
  • loop    scheme
  • loop    scheme
  • loop    scheme
  • loop    scheme
  • loop    scheme
  • loop    scheme
  • loop2    scheme
  • loop2    scheme
  • mainLoop    xtlang
  • mainLoop    xtlang
  • midi-loop    scheme
  • midi-loop    scheme
  • midi_read_loop    xtlang
  • my-gl-loop    xtlang
  • node_reply_function    xtlang
  • node_reply_loop_stop    xtlang
  • node_reply_socket_init    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nvg_draw_loop    xtlang
  • nvg_draw_loop    xtlang
  • nvg_draw_loop    xtlang
  • nvg_draw_loop    xtlang
  • opengl-loop    scheme
  • opengl-loop    scheme
  • opengl-loop    scheme
  • opengl-loop    scheme
  • receiver_loop    xtlang
  • reply_loop    xtlang
  • rmap-loop-runner    macro
  • run_main_event_loop    xtlang
  • set_up_reply_socket    xtlang
  • shadertoy-loop    scheme
  • xtm-setup-and-start-gl-loop    scheme