1 KiB
1 KiB
| post_title | author | layout | published | post_date | tags | |
|---|---|---|---|---|---|---|
| OpenSettlersII #6 | dreat | post | true | 2017-05-14 20:38:02 |
|
Slowly crawling towards functioning lib.
This commit is not really that different from other, yet I started using Elixir convetion for return values: the tuple {:ok, response}/{:error, message}. I am quite not happy with the as_server function and I guess I will rename/rewrite it later. It's quite obvious what it does - checks the rightmost bit and responds and sets "as server" to according boolean value.
Also, encoding and decoding version - I have no way of validating it, but I'm not sure if I should. This is one of two things I need to check before proceeding - another one being the Signature - I'm not sure if it's version specific or not, so that's something to get to know before coding it.
And that's it for now :)