fleet_message_node_sync   xtlang


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

Implementation

(bind-func fleet_message_node_sync
  (let ((buf:i8* (zalloc FLEET_NANOMSG_CLIENT_BUFLEN)))
    (lambda (msg:i8* sock:i32)
      (let ((sz_msg (+ (strlen msg) 1))
            (bytes (nn_send sock msg sz_msg 0)))
        (nn_sock_set_timeout sock 1000)
        (if (= bytes (convert sz_msg)) ;; should also check (< bytes (convert sz_msg))
            (let ((rbytes (nn_recv sock buf FLEET_NANOMSG_CLIENT_BUFLEN 0)))
              (if (> rbytes 0)
                  (begin (printf "%s\n" buf)
                         void)))
            (nn_println_strerror "error in request"))))))


Back to Index

Similar Entries

  • 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
  • ai_build_node    xtlang    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • ai_find_matching_node    xtlang    /digego/extempore/tree/v0.8.9/libs/external/assimp.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
  • 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
  • find_node    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.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_all_nodes_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
  • godot_node_path_destroy    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • godot_node_path_new    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • godot_variant_new_node_path    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • ipc:sync-receive    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • node_reply_function    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet-node.xtm
  • node_reply_loop    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet-node.xtm
  • node_reply_loop_stop    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet-node.xtm
  • node_reply_socket_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet-node.xtm
  • on_process_message_received    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • rtmidi_process_message    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/rtmidi.xtm
  • send_process_message    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.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
  • 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