]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Packet.hh
socket and packet copying
[chaz/yoink] / src / Moof / Packet.hh
index 00956126ea1185fb64b5e8eb7f2e5cd17edb38f0..1a5e42fed31bc696cae6913194f535d268e0a99a 100644 (file)
@@ -32,6 +32,9 @@ public:
        Packet(size_t size = PAGE_SIZE);
        Packet(const char* data, size_t size);
 
+       Packet(const Packet& copy);
+       Packet& operator=(const Packet& copy);
+
        ~Packet();
 
        Packet& operator<<(bool value);
@@ -63,6 +66,9 @@ public:
        size_t read(void* bytes, size_t size);
 
 
+       void clear();
+
+
        const char* bytes() const
        {
                return mBuffer + mR;
This page took 0.021885 seconds and 4 git commands to generate.