mirror of
https://github.com/transmission/transmission
synced 2024-12-28 02:27:41 +00:00
205abbbcce
* refactor: use cstdint for intX_t types * refactor: iwyu sstring_view * refactor: iwyu <cstring> * refactor: iwyu <vector>
21 lines
567 B
C++
21 lines
567 B
C++
// 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.
|
|
|
|
#pragma once
|
|
|
|
#ifndef __TRANSMISSION__
|
|
#error only libtransmission should #include this header.
|
|
#endif
|
|
|
|
#include <cstddef> // size_t
|
|
#include <cstdint> // uint8_t
|
|
|
|
struct tr_session;
|
|
|
|
void tr_udpInit(tr_session*);
|
|
void tr_udpUninit(tr_session*);
|
|
void tr_udpSetSocketBuffers(tr_session*);
|
|
void tr_udpSetSocketTOS(tr_session*);
|
|
|
|
bool tau_handle_message(tr_session* session, uint8_t const* msg, size_t msglen);
|