From 67f0b146ecc82da4511bfe72bdbe4f850c263d8c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 29 Jun 2012 19:07:27 -0500 Subject: Add helper functions to krb sockets --- servers/auth_server_lin/src/auth_conn.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'servers/auth_server_lin/src/auth_conn.cpp') diff --git a/servers/auth_server_lin/src/auth_conn.cpp b/servers/auth_server_lin/src/auth_conn.cpp index 65c131f..177a0e3 100644 --- a/servers/auth_server_lin/src/auth_conn.cpp +++ b/servers/auth_server_lin/src/auth_conn.cpp @@ -193,7 +193,7 @@ void AuthSocket::servLoop() { m_servClientTimeout->start(5000, TRUE); } if (m_servClientSocket->state() == TQSocket::Connected) { - if (m_servClientSocket->canReadLine()) { + if (m_servClientSocket->canReadData()) { TQDataStream clientDS(m_servClientSocket); TQString server_reply; @@ -237,11 +237,11 @@ void AuthSocket::servLoop() { TQByteArray ba(8192); TQ_ULONG reclen; - if (canReadLine()) { + if (canReadData()) { reclen = readBlock(ba.data(), 8192); m_servClientSocket->writeBlock(ba.data(), reclen); } - if (m_servClientSocket->canReadLine()) { + if (m_servClientSocket->canReadData()) { reclen = m_servClientSocket->readBlock(ba.data(), 8192); writeBlock(ba.data(), reclen); } @@ -267,7 +267,7 @@ void AuthSocket::commandLoop() { m_criticalSection++; try { if (state() == TQSocket::Connected) { - if (canReadLine()) { + if (canReadData()) { TQString command; TQDataStream ds(this); -- cgit v1.2.3