mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 17:01:19 +01:00
36 lines
570 B
C
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
|