• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/third-party/libutp/
1// This should return the MTU to the destination
2uint16 UTP_GetUDPMTU(const struct sockaddr *remote, socklen_t remotelen);
3// This should return the number of bytes of UDP overhead for one packet to the
4// destination, for overhead calculation only
5uint16 UTP_GetUDPOverhead(const struct sockaddr *remote, socklen_t remotelen);
6// This should return monotonically increasing milliseconds, start point does not matter
7uint32 UTP_GetMilliseconds();
8// This should return monotonically increasing microseconds, start point does not matter
9uint64 UTP_GetMicroseconds();
10// This should return a random uint32
11uint32 UTP_Random();
12// This is called every time we have a delay sample is made
13void UTP_DelaySample(const struct sockaddr *remote, int sample_ms);
14// Should return the max packet size to use when sending to the given address
15size_t UTP_GetPacketSize(const struct sockaddr *remote);
16
17