diff options
Diffstat (limited to 'lib/libtdekrb/src/tdekrbclientsocket.h')
-rw-r--r-- | lib/libtdekrb/src/tdekrbclientsocket.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libtdekrb/src/tdekrbclientsocket.h b/lib/libtdekrb/src/tdekrbclientsocket.h index d0eb018..f1330a4 100644 --- a/lib/libtdekrb/src/tdekrbclientsocket.h +++ b/lib/libtdekrb/src/tdekrbclientsocket.h @@ -25,6 +25,7 @@ #define N_CALLBACKS 3 +class TQBuffer; class SASLDataPrivate; class TDEKerberosClientSocket : public TQSocket @@ -37,6 +38,12 @@ class TDEKerberosClientSocket : public TQSocket bool open(int mode); void close(); + void flush(); + Offset size() const; + Offset at() const; + bool at(Offset off); + bool atEnd() const; + TQ_LONG readBlock(char *data, TQ_ULONG maxlen); TQ_LONG writeBlock(const char *data, TQ_ULONG len); TQ_LONG readLine(char *data, TQ_ULONG maxlen); @@ -53,13 +60,14 @@ class TDEKerberosClientSocket : public TQSocket void sendSASLDataToNetwork(const char *buffer, unsigned length, int netfd); int getSASLDataFromNetwork(char *buf, int trunclen); int transmitEncryptedData(int fd, const char* readbuf, int cc); - int receiveEncryptedData(char *buf, int trunclen); + int receiveEncryptedData(char *buf, unsigned int trunclen); private: bool m_kerberosRequested; TQString m_serviceName; TQString m_serverFQDN; int m_criticalSection; + TQBuffer* m_buffer; private: SASLDataPrivate *saslData; |