Some mechanism for toggling the verbosity of the prints should be
introduced, but for now just comment out all the debug prints.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
When during a read we close the socket as we send the last block the
remote will be notified about the closure and consider the transfer
incomplete. Leave the socket open until we receive a EOF error from the
remote side.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
The two include files was dropped during development but lingered in my
repository, remove the include of them - and define MAX(x, y).
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Introduce a prototype of the tqftpserv, a server implementing trivial
file transfer protocol over AF_QIPCRTR.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>