Windows sockets API is mapped via #define macros. connect() macro and
this TcpLogger method collide. Rename the method doConnect().
void
Log::TcpLogger::start()
{
- connect();
+ doConnect();
}
bool
/// starts [re]connecting to the remote logger
void
-Log::TcpLogger::connect()
+Log::TcpLogger::doConnect()
{
if (shutting_down)
return;
Must(reconnectScheduled);
Must(!conn);
reconnectScheduled = false;
- connect();
+ doConnect();
}
/// Comm::Write callback
debugs(MY_DEBUG_SECTION, 2, "write failure: " << xstrerr(io.xerrno));
// keep the first buffer (the one we failed to write)
disconnect();
- connect();
+ doConnect();
} else {
debugs(MY_DEBUG_SECTION, 5, "write successful");
void appendChunk(const char *chunk, const size_t len);
void writeIfNeeded();
void writeIfPossible();
- void connect();
+ void doConnect();
void disconnect();
/* comm callbacks */