gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r10031: add some accessors for the qu


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r10031: add some accessors for the queue
Date: Tue, 24 Mar 2009 20:00:52 -0600
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10031
committer: address@hidden
branch nick: rtmp
timestamp: Tue 2009-03-24 20:00:52 -0600
message:
  add some accessors for the queue
modified:
  libnet/http.h
=== modified file 'libnet/http.h'
--- a/libnet/http.h     2009-03-20 00:00:54 +0000
+++ b/libnet/http.h     2009-03-25 02:00:52 +0000
@@ -256,7 +256,10 @@
     ///
     /// @return The number of bytes sent
     int recvMsg(int fd);
+    int recvMsg(int fd, size_t size);
 
+    size_t recvChunked(boost::uint8_t *data, size_t size);
+    
     /// \brief Send a message to the other end of the network connection.
     ///
     /// @param data A real pointer to the data.
@@ -290,6 +293,13 @@
     void setDocRoot(const std::string &path) { _docroot = path; };
     std::string &getDocRoot() { return _docroot; };
     
+    // Pop the first date element off the que
+    boost::shared_ptr<amf::Buffer> DSOEXPORT popChunk() { return _que.pop(); };
+    // Peek at the first date element witjhout removing it from the que
+    boost::shared_ptr<amf::Buffer> DSOEXPORT peekChunk() { return _que.peek(); 
};
+    // Get the number of elements in the que
+    size_t DSOEXPORT sizeChunks() { return _que.size(); };
+    
 protected:
     // Examine the beginning of the data for an HTTP request command
     // like GET or POST, etc...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]