]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/io/TcpSocket_p.h
Added FTP support (text-tested, not BAM)
[bamtools.git] / src / api / internal / io / TcpSocket_p.h
index 4cd1f1a0614b0623656c2537068b88d2063c5a68..97274235024cde2f898730503f2bea2bbcde81d6 100644 (file)
@@ -72,7 +72,9 @@ class TcpSocket {
         bool CanReadLine(void) const;
         void ClearBuffer(void); // force buffer to clear (not a 'flush', just a 'discard')
         int64_t Read(char* data, const unsigned int numBytes);
-        std::string ReadLine(void);
+        std::string ReadLine(int64_t max = 0);
+        int64_t ReadLine(char* dest, size_t max);
+        bool WaitForReadLine(void);
         int64_t Write(const char* data, const unsigned int numBytes);
 
         // connection values