- I started coding up mod_megaphone.
- IT'S ALIVE!!
- Erlang gave me grief
One of the issues I ran into was that the ejabberd distribution seems to have its own version of erlang. That would be fine if it used that to compile the code but instead it uses whatever happens to be in /usr/local/bin.
This bit me when I tried to use some of the functions detailed in the documentation up on erlang.org and they seemed to work OK when I was coding and testing, but refused to work when I ran them with ejabberd. So far, I don't have a good alternative to the binary module so I am converting all the data I get to a list before doing anything else with it.
I got to the point where I was able to inject packets to the system via megaphone_http_bind, a modified version of ejabberd_http_bind. Currently, there is no way for responses to get back to the client, so the next step is figuring out how to do that.
No comments:
Post a Comment