transmission/libtransmission/tr-utp.h

26 lines
578 B
C
Raw Normal View History

// This file Copyright © 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
2023-11-03 17:03:26 +00:00
#ifndef _WIN32
#include <sys/socket.h>
#else
#include <ws2tcpip.h>
#endif
struct tr_session;
void tr_utpInit(tr_session* session);
bool tr_utpPacket(unsigned char const* buf, size_t buflen, struct sockaddr const* from, socklen_t fromlen, tr_session* ss);
void tr_utpClose(tr_session*);