Switching between http/non-http depending of first byte

Max Lapshin <>
Thu Oct 1 09:50:59 CEST 2009


Hi. I want to implement an unusual feature: when server accepts socket,
it must look at first byte. If it is 0x03, than I want to handle it by
one handler (RTMP),
if other, than HTTP handler.

Problem is that I need only one byte and received packet should be
passed to exact protocol handler.

I understand, that I will not be able to use erlang  setopt(http)
feature, so question is the following:

should I better use Yaws or MochiWeb as underlying webserver?


More information about the erlang-questions mailing list