libenigma_base_a_SOURCES = \
buffer.cpp ebase.cpp econfig.cpp eerror.cpp elock.cpp \
init.cpp message.cpp thread.cpp \
- smartptr.cpp estring.cpp connection.cpp
+ smartptr.cpp estring.cpp connection.cpp \
+ filepush.cpp
eDebug("eFilePushThread *write error* - not yet handled");
// ... we would stop the thread
}
- printf("FILEPUSH: wrote %d bytes\n", w);
+// printf("FILEPUSH: wrote %d bytes\n", w);
m_buf_start += w;
continue;
}
continue;
eDebug("eFilePushThread *read error* - not yet handled");
}
- printf("FILEPUSH: read %d bytes\n", m_buf_end);
+ if (m_buf_end == 0)
+ {
+ eDebug("FILEPUSH: end-of-file! (currently unhandled)");
+ break;
+ }
+// printf("FILEPUSH: read %d bytes\n", m_buf_end);
}
eDebug("FILEPUSH THREAD STOP");