rasendubi / arachne

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Start implementing MQTT logic #20

Closed rasendubi closed 8 years ago

rasendubi commented 8 years ago

We should start implementing the server logic. Basically, it's a function from client state, server state, and input packet to output packet. Most probably, the state should be hidden behind a monad and sending a response packet should be done through STM queue. (Though that's not a requirement and discussable.)

The acceptance criteria are answering with CONNACK packet to the first CONNECT packet and closing a connection on the second CONNECT packet (as that's a protocol violation).

rasendubi commented 8 years ago

That was done as a part of mqtt-gateway implementation (#29) and will be ported to the broker side.