This process handle queries from the cgi script.
Process conceptual model:
<cgiSrv-query>
from cgiClient (see cgiClient): receive a socket query asking for an archive.
This process handle 2 kind of queries:
220
and its path,
120
.
221
and reminds that a USER (see Who) is looking for the related archive and want to be notified when it becomes available using this email address.
extract()
to extract (see extract): internally ask to start extraction.
deliver()
to delivering (see delivering): deliver mails related to an extracted archive.
Example:
$ telnet localhost 6560 Headers Collection hello Server fbc144f6da753a9a4288e2915df14edd Type CGI DoCypher FALSE Body # date host … D 2013-12-10,10:24:24 fbc144f6da753a9a4288e2915df14edd … … hash size extra … 365acad0657b0113990fe669972a65de 15106 test@test.org ^]quit # tail -f /var/log/mediatex.log [info mdtxd.c:384] socketJob ... [notice mdtxd.c:400] hello: DISK message from \ fbc144f6da753a9a4288e2915df14edd server (localhost)
Code: