dtls_handle_message method

int dtls_handle_message(
  1. Pointer<dtls_context_t> ctx,
  2. Pointer<session_t> session,
  3. Pointer<uint8> msg,
  4. int msglen,
)

Handles incoming data as DTLS message from given peer.

@param ctx The dtls context to use. @param session The current session @param msg The received data @param msglen The actual length of @p msg. @return A value less than zero on error, zero on success.

Implementation

int dtls_handle_message(
  ffi.Pointer<dtls_context_t> ctx,
  ffi.Pointer<session_t> session,
  ffi.Pointer<uint8> msg,
  int msglen,
) {
  return _dtls_handle_message(
    ctx,
    session,
    msg,
    msglen,
  );
}