透明思考


Transparent Thoughts


Stomperl- Stomp with Erlang

Stomperlis an attempt to build something not-so-that-non-trivial (in this case, aStompserver) withErlang. To kick it off, I stole the server architecturefromhereandhere. Currently it doesn’teven support the fullprotocol: only CONNECT,SUBSCRIBE and SEND commands are supported. But anyway, it’s moving forward and I’m learning from it.

To make it run:

  1. make test, which hopefully succeeds.
  2. make start, then you’ll get an Erlang console.
  3. In the Erlang console,tcp_server_sup:start_server().
  4. In another shell console,make acceptance, which hopefully succeeds.

I created an extremely simple acceptance test withGozirra.

What’s thenext? Well, I suppose I’llimplement the full protocol, and fix some defects. As a newbie to Erlang, I made and am makingstupid mistakes. Welcome to be stupid together with me.