MCPcopy Create free account
hub / github.com/Cpasjuste/pplay / FtpSetCallback

Function FtpSetCallback

src/filer/ftplib/ftplib.cpp:527–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527GLOBALDEF int FtpSetCallback(const FtpCallbackOptions *opt, netbuf *nControl) {
528 nControl->idlecb = opt->cbFunc;
529 nControl->idlearg = opt->cbArg;
530 nControl->idletime.tv_sec = opt->idleTime / 1000;
531 nControl->idletime.tv_usec = (opt->idleTime % 1000) * 1000;
532 nControl->cbbytes = opt->bytesXferred;
533 return 1;
534}
535
536GLOBALDEF int FtpClearCallback(netbuf *nControl) {
537 nControl->idlecb = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected