mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 20:31:30 +00:00
b8bfe9b83a
RFC 5389 is a standard protocol that can be used for this instead of ip4.me. I may have gone overboard on the CSPRNG... It was fun though.
20 lines
694 B
C
20 lines
694 B
C
// SONIC ROBO BLAST 2 KART
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2020 by James R.
|
|
//
|
|
// This program is free software distributed under the
|
|
// terms of the GNU General Public License, version 2.
|
|
// See the 'LICENSE' file for more details.
|
|
//-----------------------------------------------------------------------------
|
|
/// \file stun.h
|
|
/// \brief RFC 5389 client implementation to fetch external IP address.
|
|
|
|
#ifndef KART_STUN_H
|
|
#define KART_STUN_H
|
|
|
|
typedef void (*stun_callback_t)(UINT32 address);
|
|
|
|
void STUN_bind (stun_callback_t);
|
|
boolean STUN_got_response (const char * const buffer, const size_t size);
|
|
|
|
#endif/*KART_STUN_H*/
|