client/Response: new Client wrapper class for writing responses

This commit is contained in:
Max Kellermann
2015-08-06 22:10:25 +02:00
parent b1480167be
commit 7652a2986b
49 changed files with 1068 additions and 780 deletions

View File

@@ -19,10 +19,10 @@
#include "config.h"
#include "TimePrint.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx"
void
time_print(Client &client, const char *name, time_t t)
time_print(Response &r, const char *name, time_t t)
{
#ifdef WIN32
const struct tm *tm2 = gmtime(&t);
@@ -41,5 +41,5 @@ time_print(Client &client, const char *name, time_t t)
"%FT%TZ",
#endif
tm2);
client_printf(client, "%s: %s\n", name, buffer);
r.Format("%s: %s\n", name, buffer);
}