module TinyDTLS::Wrapper
This module provides a low level FFI wrapper for the relevant tinydtls functions. It might be subject to change thus it is highly recommended to use the high level abstraction layer instead.
Constants
- Alert
- DTLS_COOKIE_SECRET_LENGTH
Constants defined as macros in the tinydtls header files
- DTLS_MAX_BUF
- LogLevel
Public Class Methods
dtls_alert_fatal_create(desc)
click to toggle source
# File lib/tinydtls/wrapper.rb, line 99 def self.dtls_alert_fatal_create(desc) return -((2 << 8) | desc) end
dtls_get_app_data(ctx)
click to toggle source
# File lib/tinydtls/wrapper.rb, line 118 def self.dtls_get_app_data(ctx) return ctx[:app] end
dtls_set_handler(ctx, handler)
click to toggle source
# File lib/tinydtls/wrapper.rb, line 122 def self.dtls_set_handler(ctx, handler) ctx[:h] = handler end