+/*
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
#ifndef SQUID_TOOLS_SQUIDCLIENT_TRANSPORT_H
#define SQUID_TOOLS_SQUIDCLIENT_TRANSPORT_H
{
public:
TheConfig() :
- ioTimeout(120),
- localHost(NULL),
- port(CACHE_HTTP_PORT),
- tlsEnabled(false),
- tlsAnonymous(false) {
+ ioTimeout(120),
+ localHost(NULL),
+ port(CACHE_HTTP_PORT),
+ tlsEnabled(false),
+ tlsAnonymous(false) {
params = "NORMAL";
hostname = "localhost";
}
/// write len bytes to the currently open connection.
/// \return the number of bytes written, or -1 on errors
-ssize_t Write(void *buf, size_t len);
+ssize_t Write(const void *buf, size_t len);
/// read up to len bytes from the currently open connection.
/// \return the number of bytes read, or -1 on errors
} // namespace Transport
#endif /* SQUID_TOOLS_SQUIDCLIENT_TRANSPORT_H */
+