2022-01-20 18:27:56 +00:00
|
|
|
// This file Copyright © 2010 Juliusz Chroboczek.
|
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2011-01-09 21:48:33 +00:00
|
|
|
|
2016-03-29 16:37:21 +00:00
|
|
|
#pragma once
|
2011-03-13 00:18:11 +00:00
|
|
|
|
2011-01-09 21:48:33 +00:00
|
|
|
#ifndef __TRANSMISSION__
|
2017-04-19 12:04:45 +00:00
|
|
|
#error only libtransmission should #include this header.
|
2011-01-09 21:48:33 +00:00
|
|
|
#endif
|
|
|
|
|
2021-12-16 09:43:51 +00:00
|
|
|
#include <cstddef> // size_t
|
2022-04-08 01:50:26 +00:00
|
|
|
#include <cstdint> // uint8_t
|
2021-12-16 09:43:51 +00:00
|
|
|
|
|
|
|
struct tr_session;
|
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
void tr_udpInit(tr_session*);
|
|
|
|
void tr_udpUninit(tr_session*);
|
2022-09-06 17:52:58 +00:00
|
|
|
void tr_udpSetSocketBuffers(tr_session const*);
|
2021-10-27 01:59:31 +00:00
|
|
|
void tr_udpSetSocketTOS(tr_session*);
|
2011-03-13 00:18:11 +00:00
|
|
|
|
2017-04-20 16:02:19 +00:00
|
|
|
bool tau_handle_message(tr_session* session, uint8_t const* msg, size_t msglen);
|