sendfile, what is the 3rd argument
Brought to you by:
lilyco
According to utd.h it's a reference to a 64-bit number:
UDT_API int64_t sendfile(UDTSOCKET u, std::fstream& ifs, int64_t& offset, int64_t size, int block = 364000);
According to the documentation, it's a 64-bit number (no reference):
int64_t sendfile(
UDTSOCKET u,
fstream& ifs,
const int64_t offset,
const int64_t size,
const int block = 7320000
);
Which is it?
The
offset
argument specifies where to begin in the file -- in case, you don't want to send all of it...