]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/io/BamFtp_p.h
Changed platform check to use standard cmake variable (issue #66)
[bamtools.git] / src / api / internal / io / BamFtp_p.h
index d9e02fb13619dbca69c0c18896865f79f8472068..11f549c5187f2c75c2877b3c4d4b800bf08516d4 100644 (file)
@@ -2,7 +2,7 @@
 // BamFtp_p.h (c) 2011 Derek Barnett
 // Marth Lab, Department of Biology, Boston College
 // ---------------------------------------------------------------------------
-// Last modified: 10 October 2011 (DB)
+// Last modified: 10 November 2011 (DB)
 // ---------------------------------------------------------------------------
 // Provides reading/writing of BAM files on FTP server
 // ***************************************************************************
@@ -42,7 +42,7 @@ class BamFtp : public IBamIODevice {
         bool IsRandomAccess(void) const;
         bool Open(const IBamIODevice::OpenMode mode);
         int64_t Read(char* data, const unsigned int numBytes);
-        bool Seek(const int64_t& position);
+        bool Seek(const int64_t& position, const int origin = SEEK_SET);
         int64_t Tell(void) const;
         int64_t Write(const char* data, const unsigned int numBytes);
 
@@ -61,7 +61,8 @@ class BamFtp : public IBamIODevice {
 
     // data members
     private:
-        // our main socket
+
+        // our main sockets
         TcpSocket* m_commandSocket;
         TcpSocket* m_dataSocket;