What is the relation between the Event Socket Library (ESL) and `mod_event_socket`?

主宰稳场 提交于 2019-12-24 19:20:41

问题


Is there any? Based on the ways the Event Socket Library (ESL) documentation (and FreeSWITCH books) refer to mod_event_socket, I was under the impression that mod_event_socket (src) (and derivatives, such as mod_erlang_event, mod_kazoo, etc.) are all built on libesl. As it turns out, only mod_esl (src) uses it.

The way I currently understand it, both tap into FreeSWITCH's event system to control it, but

  • ESL is a C library (libesl) that can be used to build external applications, and extend programming languages (via mod_esl?) such as Perl, Python, etc., and
  • mod_event_socket et al. are modules providing network interfaces via an API similar to ESL (i.e., mod_event_socket via TCP, mod_erlang_event and mod_kazoo via Erlang on top of TCP, etc.)

So they are disparate entities but follow a common (and implicit) API specification. Put it another way, there is an idea of how to interact with the event system from an external application, and it is independently implemented in ESL, mod_event_socket and co.

来源:https://stackoverflow.com/questions/59223156/what-is-the-relation-between-the-event-socket-library-esl-and-mod-event-socke

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!