1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-30 17:01:19 +01:00
RIOT/tests/pkg/tinydtls_sock_async/tinydtls_common.h
Marian Buschsieweke af266cefba
tests/[f-p]*/spdx: add SPDX tag
Co-authored-by: Ann🐸 <git@annsann.eu>
Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-19 14:04:19 +01:00

36 lines
570 B
C

/*
* SPDX-FileCopyrightText: 2020 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup tests
*
* @{
* @file
* @brief Common definitions for client and server in tinyDTLS `sock_async` test
*
* @author Martine Lenders <m.lenders@fu-berlin.de>
*/
#include "event.h"
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef DTLS_DEFAULT_PORT
#define DTLS_DEFAULT_PORT (20220) /* DTLS default port */
#endif
typedef struct {
event_t super;
sock_dtls_t *sock;
} tinydtls_sock_event_t;
#ifdef __cplusplus
}
#endif