Mercurial > prosody-hg
comparison net/websocket/frames.lua @ 6897:8972b1a96526
net.websocket.frames: Link to documentation when bitop is missing
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 06 Oct 2015 16:49:01 +0200 |
| parents | c11776f85552 |
| children | d01254d5a825 |
comparison
equal
deleted
inserted
replaced
| 6896:c11776f85552 | 6897:8972b1a96526 |
|---|---|
| 9 local softreq = require "util.dependencies".softreq; | 9 local softreq = require "util.dependencies".softreq; |
| 10 local log = require "util.logger".init "websocket.frames"; | 10 local log = require "util.logger".init "websocket.frames"; |
| 11 local random_bytes = require "util.random".bytes; | 11 local random_bytes = require "util.random".bytes; |
| 12 | 12 |
| 13 local bit = assert(softreq"bit" or softreq"bit32", | 13 local bit = assert(softreq"bit" or softreq"bit32", |
| 14 "No bit module found. Either LuaJIT 2, lua-bitop or Lua 5.2 is required"); | 14 "No bit module found. See https://prosody.im/doc/depends#bitop"); |
| 15 local band = bit.band; | 15 local band = bit.band; |
| 16 local bor = bit.bor; | 16 local bor = bit.bor; |
| 17 local bxor = bit.bxor; | 17 local bxor = bit.bxor; |
| 18 local lshift = bit.lshift; | 18 local lshift = bit.lshift; |
| 19 local rshift = bit.rshift; | 19 local rshift = bit.rshift; |
