📄 throttledsocket.h
字号:
// ZZ:UploadBandWithThrottler (UDP) -->
#pragma once
struct SocketSentBytes {
bool success;
uint32 sentBytesStandardPackets;
uint32 sentBytesControlPackets;
};
class ThrottledControlSocket
{
public:
virtual SocketSentBytes SendControlData(uint32 maxNumberOfBytesToSend, uint32 minFragSize) = 0;
};
class ThrottledFileSocket : public ThrottledControlSocket
{
public:
virtual SocketSentBytes SendFileAndControlData(uint32 maxNumberOfBytesToSend, uint32 minFragSize) = 0;
virtual DWORD GetLastCalledSend() = 0;
virtual uint32 GetNeededBytes() = 0;
};
// <-- ZZ:UploadBandWithThrottler (UDP)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -