host_to_ip   xtlang


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

Implementation

;; return the FIRST address only
(bind-func host_to_ip
  (lambda (name:i8*)
    (let ((he (cast (gethostbyname name) hostent*)))
      (if (null? he)
          (begin (printf "Could not find hostname: %s\n" name)
                 null)
          (let ((addresses (cast (tref he 4) in_addr**)))
            (inet_ntoa (tref (pref addresses 0) 0)))))))


Back to Index

Similar Entries

  • -clock:metro-from-host-    scheme
  • -clock:metro-from-host-    scheme
  • BTree_walk_postorder    xtlang
  • Complex_multiplication_bybuf    xtlang
  • Complex_multiplication_bybuf    xtlang
  • Complex_multiplication_polar    xtlang
  • LEGATO_OFF    scheme
  • LEGATO_ON    scheme
  • LFO_OPT_FRQ_TO_AMP    scheme
  • LFO_OPT_FRQ_TO_FRQ    scheme
  • LR_to_MS_2_channels    xtlang
  • LR_to_MS_3_channels    xtlang
  • MS_to_LR_2_channels    xtlang
  • MS_to_LR_3_channels    xtlang
  • PaDeviceInfo_toString    xtlang
  • PaHostApiInfo_print    xtlang
  • PaHostApiInfo_toString    xtlang
  • PaHostErrorInfo_print    xtlang
  • PaHostErrorInfo_toString    xtlang
  • PaStreamCallbackTimeInfo_toString    xtlang
  • PaStreamInfo_toString    xtlang
  • PaStreamParameters_toString    xtlang
  • TSM_TIM_iPL    xtlang
  • VtoPtr    xtlang
  • Widget_button    xtlang
  • Widget_button    xtlang
  • Widget_button_c    xtlang
  • Widget_find_postorder    xtlang
  • Widget_walk_postorder    xtlang
  • Windows-add-libdir-to-PATH    scheme
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_radio_button    xtlang
  • aiProcess_CalcTangentSpace    scheme
  • aiProcess_Debone    scheme
  • aiProcess_FindDegenerates    scheme
  • aiProcess_FindInstances    scheme
  • aiProcess_FindInvalidData    scheme
  • aiProcess_FixInfacingNormals    scheme
  • aiProcess_FlipUVs    scheme
  • aiProcess_FlipWindingOrder    scheme
  • aiProcess_GenNormals    scheme
  • aiProcess_GenSmoothNormals    scheme
  • aiProcess_GenUVCoords    scheme
  • aiProcess_ImproveCacheLocality    scheme
  • aiProcess_JoinIdenticalVertices    scheme
  • aiProcess_LimitBoneWeights    scheme
  • aiProcess_MakeLeftHanded    scheme
  • aiProcess_OptimizeGraph    scheme
  • aiProcess_OptimizeMeshes    scheme
  • aiProcess_PreTransformVertices    scheme
  • aiProcess_RemoveComponent    scheme
  • aiProcess_RemoveRedundantMaterials    scheme
  • aiProcess_SortByPType    scheme
  • aiProcess_SplitByBoneCount    scheme
  • aiProcess_SplitLargeMeshes    scheme
  • aiProcess_TransformUVCoords    scheme
  • aiProcess_Triangulate    scheme
  • aiProcess_ValidateDataStructure    scheme
  • ai_color4_to_float4    xtlang
  • ai_matrix4_to_float    xtlang
  • anyatom->string    scheme
  • astra_stop    xtlang
  • atom?    scheme
  • audiofile_16bitPCM_to_sample_be    xtlang
  • audiofile_16bitPCM_to_sample_le    xtlang
  • audiofile_24bitPCM_to_sample_be    xtlang
  • audiofile_24bitPCM_to_sample_le    xtlang
  • audiofile_float_to_sample_be    xtlang
  • audiofile_float_to_sample_le    xtlang
  • bind-data-constructors    scheme
  • bind-data-deconstructors    scheme
  • bind-data-deconstructors-macros    scheme
  • bind-data-type-constructor    scheme
  • bind-func-ipc    scheme
  • bottom    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol2    xtlang
  • cas-xtm-to-string    scheme
  • check-token    scheme
  • cl:atom?    scheme
  • constructor-name-and-type    scheme
  • cpClosestPointOnSegment    xtlang
  • cpvtoangle    xtlang
  • create_shadertoy_shader    xtlang
  • curl_setopts_authenticate    xtlang
  • curl_setopts_basic    xtlang
  • curl_setopts_header    xtlang
  • custom-match    scheme
  • deconstructor-name-and-type    scheme
  • degToRad    xtlang
  • draw-skeleton    xtlang
  • f4ToArray    xtlang
  • factor    macro
  • factorial    scheme
  • factorize-scheme    scheme
  • filename-strip-extension    scheme
  • fill_direction_vector    xtlang
  • fill_direction_vector    xtlang
  • fleet_connect_to_nodes    xtlang
  • fleet_get_ip_list    xtlang
  • get_host    xtlang
  • get_touch_id    xtlang
  • get_touch_x    xtlang
  • get_touch_y    xtlang
  • ghttp_copy_request_body_into_buffer    xtlang
  • give-token    scheme
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang
  • glfw_print_primary_monitor_details    xtlang
  • godot_global_get_singleton    xtlang
  • godot_variant_new_vector2    xtlang
  • godot_variant_new_vector3    xtlang
  • godot_vector2_new    xtlang
  • godot_vector2_pvar    xtlang
  • godot_vector2_set_x    xtlang
  • godot_vector2_set_y    xtlang
  • godot_vector2_var    xtlang
  • godot_vector3_new    xtlang
  • godot_vector3_pvar    xtlang
  • godot_vector3_var    xtlang
  • gui_find_leaf_postorder    xtlang
  • histogram    xtlang
  • histogram    xtlang
  • hostname    xtlang
  • impc:compiler:print-bind-func-details-to-log    scheme
  • impc:compiler:print-binding-details-to-log    scheme
  • impc:compiler:print-dylib-loading-details-to-log    scheme
  • impc:compiler:print-lib-binding-details-to-log    scheme
  • impc:compiler:print-polying-details-to-log    scheme
  • impc:ir:compiler:make-vector    scheme
  • impc:ir:compiler:vector-ref    scheme
  • impc:ir:compiler:vector-set    scheme
  • impc:ir:compiler:vector-shuffle    scheme
  • impc:ir:get-type-from-pretty-vector    scheme
  • impc:ir:get-vector-type-from-str    scheme
  • impc:ir:regex-structs-or-atoms    scheme
  • impc:ir:strip-space    scheme
  • impc:ir:vector?    scheme
  • impc:ti:add-types-to-source    scheme
  • impc:ti:add-types-to-source-atom    scheme
  • impc:ti:bitwise-not-to-eor    scheme
  • impc:ti:check-to-update-generic-vars    scheme
  • impc:ti:compile-type-dataconstructors    scheme
  • impc:ti:make-vector-check    scheme
  • impc:ti:numeric-cast-operator    scheme
  • impc:ti:strip-named-type    scheme
  • impc:ti:try-to-resolve-named-types    scheme
  • impc:ti:vector-ref-check    scheme
  • impc:ti:vector-set-check    scheme
  • impc:ti:vector-shuffle-check    scheme
  • integrator_c    xtlang
  • ipc:bind-func    scheme
  • ipc:bind-xtmrender-vars    scheme
  • ipc:call    scheme
  • ipc:eval    macro
  • ipc:for-each    scheme
  • ipc:load    scheme
  • ipc:map    scheme
  • ipc:mapcall    scheme
  • ipc:proc-name-with-mapping    scheme
  • ipc:run-active-label    scheme
  • ipc:set-local-remote-mapping    scheme
  • ipc:sync-receive    scheme
  • is_touch_down    xtlang
  • is_touch_move    xtlang
  • is_touch_palm    xtlang
  • is_touch_pen    xtlang
  • is_touch_up    xtlang
  • json_obj_iterator    xtlang
  • kinect_stop    xtlang
  • list->vector    scheme
  • make-vector-with-proc    scheme
  • mat4_to_mat3    xtlang
  • mat4_to_mat3    xtlang
  • match-vector    scheme
  • my_button_cb    xtlang
  • node_reply_loop_stop    xtlang
  • ocv_copyto    xtlang
  • ocv_total    xtlang
  • on_register_custom_schemes    xtlang
  • pc:diatonic    scheme
  • phase_vocoder_iPL    xtlang
  • pipeline    xtlang
  • pipeline    xtlang
  • pipeline_stage    xtlang
  • pipeline_stage    xtlang
  • pipeline_stage    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart2    xtlang
  • rados-connect-to-cluster    xtlang
  • rados-connect-to-pool    xtlang
  • reduce-ptrdepth-to-zero    scheme
  • rtod    xtlang
  • rtof    xtlang
  • rtoi1    xtlang
  • rtoi16    xtlang
  • rtoi32    xtlang
  • rtoi64    xtlang
  • rtoi8    xtlang
  • scientific-pitch-notation-to-midi-number    scheme
  • send-skeleton-osc    xtlang
  • sf_read_file_into_buffer    xtlang
  • shadertoy-loop    scheme
  • skip    scheme
  • stbi_flip_vertically    xtlang
  • stop    xtlang
  • stop-note    scheme
  • stop_load    xtlang
  • stop_running    xtlang
  • stop_sim    xtlang
  • store_frame_OLA    xtlang
  • store_frame_PV    xtlang
  • store_frame_iPL    xtlang
  • store_frame_sPL    xtlang
  • string->anyatom    scheme
  • sys:host-to-ip    scheme
  • sys:hostname    scheme
  • sys_g_get_host_name    xtlang
  • t:vector?    scheme
  • take-token    scheme
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString_help    xtlang
  • toString_help    xtlang
  • toString_help    xtlang
  • toString_return    xtlang
  • toString_space    xtlang
  • top    xtlang
  • topclock-bpm    scheme
  • topclock-election    scheme
  • topclock-receive    scheme
  • topclock-streamer    scheme
  • topclock-sync    scheme
  • topclock-variable    scheme
  • toplap-clock-election    scheme
  • toplap-clock-sync    scheme
  • unzip1-with-cdr    scheme
  • unzip1-with-cdr-iterative    scheme
  • variable-constructor    scheme
  • vector->list    scheme
  • vector-equal?    scheme
  • vector-fill!    scheme
  • vector-test2    xtlang
  • vector_gfx:XTMRENDERCB    xtlang
  • vector_test    xtlang
  • vector_test_a    xtlang
  • with-input-output-from-to-files    scheme
  • with-output-to-file    scheme
  • world_set_to_checkerboard    xtlang
  • world_set_to_inverse    xtlang
  • xtm_add_ellipse    xtlang
  • xtm_add_ellipse    xtlang
  • xtm_add_ellipse    xtlang
  • xtm_add_ellipsed    xtlang
  • xtm_draw_ellipse    xtlang
  • xtm_draw_ellipse_fill    xtlang
  • xtm_draw_ellipse_fill    xtlang
  • xtm_draw_ellipse_fill    xtlang
  • xtm_draw_ellipse_fill    xtlang
  • xtm_draw_ellipse_stroke    xtlang
  • xtm_draw_ellipse_stroke    xtlang
  • xtm_draw_ellipse_stroke    xtlang
  • xtm_draw_ellipse_stroke    xtlang
  • xtm_draw_ellipsed    xtlang
  • xtm_frame_data_to_tex    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_projecton_texture_weight    xtlang
  • xtm_stop_note    xtlang
  • xtmdoc-export-caches-to-json    scheme
  • xtmdoc-strip-arg-type-annotations    scheme
  • zip    scheme
  • zip_array_ptr_constraint    scheme
  • zip_array_test    xtlang
  • zip_array_test    xtlang
  • zip_array_val_constraint    scheme