summaryrefslogtreecommitdiffstats
path: root/servers/auth_server_lin/src/auth_conn.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-29 19:07:27 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-29 19:07:27 -0500
commit67f0b146ecc82da4511bfe72bdbe4f850c263d8c (patch)
treef41dd17e138fbf3361cfe03479cedb862fcee5ce /servers/auth_server_lin/src/auth_conn.cpp
parent1f8f9ca9434d9e2c0d7e7e061b7177009fd504df (diff)
downloadulab-67f0b146ecc82da4511bfe72bdbe4f850c263d8c.tar.gz
ulab-67f0b146ecc82da4511bfe72bdbe4f850c263d8c.zip
Add helper functions to krb sockets
Diffstat (limited to 'servers/auth_server_lin/src/auth_conn.cpp')
-rw-r--r--servers/auth_server_lin/src/auth_conn.cpp8
1 files changed, 4 insertions, 4 deletions
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);