diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llpacketbuffer.cpp | 23 | ||||
-rw-r--r-- | linden/indra/llmessage/llpacketbuffer.h | 1 | ||||
-rw-r--r-- | linden/indra/llmessage/llpacketring.cpp | 4 | ||||
-rw-r--r-- | linden/indra/llmessage/llpacketring.h | 2 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfer.cpp | 4 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfer.h | 2 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfer_file.cpp | 6 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfer_file.h | 2 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfer_mem.cpp | 6 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfer_mem.h | 2 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfer_vfile.cpp | 6 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfer_vfile.h | 2 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfermanager.cpp | 4 | ||||
-rw-r--r-- | linden/indra/llmessage/llxfermanager.h | 2 |
14 files changed, 21 insertions, 45 deletions
diff --git a/linden/indra/llmessage/llpacketbuffer.cpp b/linden/indra/llmessage/llpacketbuffer.cpp index 129965e..649cdb6 100644 --- a/linden/indra/llmessage/llpacketbuffer.cpp +++ b/linden/indra/llmessage/llpacketbuffer.cpp | |||
@@ -65,7 +65,6 @@ LLPacketBuffer::LLPacketBuffer (S32 hSocket) | |||
65 | 65 | ||
66 | LLPacketBuffer::~LLPacketBuffer () | 66 | LLPacketBuffer::~LLPacketBuffer () |
67 | { | 67 | { |
68 | free(); | ||
69 | } | 68 | } |
70 | 69 | ||
71 | /////////////////////////////////////////////////////////// | 70 | /////////////////////////////////////////////////////////// |
@@ -76,25 +75,3 @@ void LLPacketBuffer::init (S32 hSocket) | |||
76 | mHost = ::get_sender(); | 75 | mHost = ::get_sender(); |
77 | } | 76 | } |
78 | 77 | ||
79 | /////////////////////////////////////////////////////////// | ||
80 | |||
81 | void LLPacketBuffer::free () | ||
82 | { | ||
83 | } | ||
84 | |||
85 | |||
86 | |||
87 | |||
88 | |||
89 | |||
90 | |||
91 | |||
92 | |||
93 | |||
94 | |||
95 | |||
96 | |||
97 | |||
98 | |||
99 | |||
100 | |||
diff --git a/linden/indra/llmessage/llpacketbuffer.h b/linden/indra/llmessage/llpacketbuffer.h index f1c343b..fc6f606 100644 --- a/linden/indra/llmessage/llpacketbuffer.h +++ b/linden/indra/llmessage/llpacketbuffer.h | |||
@@ -47,7 +47,6 @@ public: | |||
47 | const char *getData() const { return mData; } | 47 | const char *getData() const { return mData; } |
48 | LLHost getHost() const { return mHost; } | 48 | LLHost getHost() const { return mHost; } |
49 | void init(S32 hSocket); | 49 | void init(S32 hSocket); |
50 | void free(); | ||
51 | 50 | ||
52 | protected: | 51 | protected: |
53 | char mData[NET_BUFFER_SIZE]; // packet data /* Flawfinder : ignore */ | 52 | char mData[NET_BUFFER_SIZE]; // packet data /* Flawfinder : ignore */ |
diff --git a/linden/indra/llmessage/llpacketring.cpp b/linden/indra/llmessage/llpacketring.cpp index 12d4e11..2d517af 100644 --- a/linden/indra/llmessage/llpacketring.cpp +++ b/linden/indra/llmessage/llpacketring.cpp | |||
@@ -59,11 +59,11 @@ LLPacketRing::LLPacketRing () : | |||
59 | /////////////////////////////////////////////////////////// | 59 | /////////////////////////////////////////////////////////// |
60 | LLPacketRing::~LLPacketRing () | 60 | LLPacketRing::~LLPacketRing () |
61 | { | 61 | { |
62 | free(); | 62 | cleanup(); |
63 | } | 63 | } |
64 | 64 | ||
65 | /////////////////////////////////////////////////////////// | 65 | /////////////////////////////////////////////////////////// |
66 | void LLPacketRing::free () | 66 | void LLPacketRing::cleanup () |
67 | { | 67 | { |
68 | LLPacketBuffer *packetp; | 68 | LLPacketBuffer *packetp; |
69 | 69 | ||
diff --git a/linden/indra/llmessage/llpacketring.h b/linden/indra/llmessage/llpacketring.h index dac52e6..8d3bf8d 100644 --- a/linden/indra/llmessage/llpacketring.h +++ b/linden/indra/llmessage/llpacketring.h | |||
@@ -47,7 +47,7 @@ public: | |||
47 | LLPacketRing(); | 47 | LLPacketRing(); |
48 | ~LLPacketRing(); | 48 | ~LLPacketRing(); |
49 | 49 | ||
50 | void free(); | 50 | void cleanup(); |
51 | 51 | ||
52 | void dropPackets(U32); | 52 | void dropPackets(U32); |
53 | void setDropPercentage (F32 percent_to_drop); | 53 | void setDropPercentage (F32 percent_to_drop); |
diff --git a/linden/indra/llmessage/llxfer.cpp b/linden/indra/llmessage/llxfer.cpp index ab7b1ee..03bc42c 100644 --- a/linden/indra/llmessage/llxfer.cpp +++ b/linden/indra/llmessage/llxfer.cpp | |||
@@ -55,7 +55,7 @@ LLXfer::LLXfer (S32 chunk_size) | |||
55 | 55 | ||
56 | LLXfer::~LLXfer () | 56 | LLXfer::~LLXfer () |
57 | { | 57 | { |
58 | free(); | 58 | cleanup(); |
59 | } | 59 | } |
60 | 60 | ||
61 | /////////////////////////////////////////////////////////// | 61 | /////////////////////////////////////////////////////////// |
@@ -90,7 +90,7 @@ void LLXfer::init (S32 chunk_size) | |||
90 | 90 | ||
91 | /////////////////////////////////////////////////////////// | 91 | /////////////////////////////////////////////////////////// |
92 | 92 | ||
93 | void LLXfer::free () | 93 | void LLXfer::cleanup () |
94 | { | 94 | { |
95 | if (mBuffer) | 95 | if (mBuffer) |
96 | { | 96 | { |
diff --git a/linden/indra/llmessage/llxfer.h b/linden/indra/llmessage/llxfer.h index 259f1ac..bd82300 100644 --- a/linden/indra/llmessage/llxfer.h +++ b/linden/indra/llmessage/llxfer.h | |||
@@ -88,7 +88,7 @@ class LLXfer | |||
88 | virtual ~LLXfer(); | 88 | virtual ~LLXfer(); |
89 | 89 | ||
90 | void init(S32 chunk_size); | 90 | void init(S32 chunk_size); |
91 | virtual void free(); | 91 | virtual void cleanup(); |
92 | 92 | ||
93 | virtual S32 startSend (U64 xfer_id, const LLHost &remote_host); | 93 | virtual S32 startSend (U64 xfer_id, const LLHost &remote_host); |
94 | virtual void sendPacket(S32 packet_num); | 94 | virtual void sendPacket(S32 packet_num); |
diff --git a/linden/indra/llmessage/llxfer_file.cpp b/linden/indra/llmessage/llxfer_file.cpp index da12d54..c56ea98 100644 --- a/linden/indra/llmessage/llxfer_file.cpp +++ b/linden/indra/llmessage/llxfer_file.cpp | |||
@@ -67,7 +67,7 @@ LLXfer_File::LLXfer_File (const std::string& local_filename, BOOL delete_local_o | |||
67 | 67 | ||
68 | LLXfer_File::~LLXfer_File () | 68 | LLXfer_File::~LLXfer_File () |
69 | { | 69 | { |
70 | free(); | 70 | cleanup(); |
71 | } | 71 | } |
72 | 72 | ||
73 | /////////////////////////////////////////////////////////// | 73 | /////////////////////////////////////////////////////////// |
@@ -95,7 +95,7 @@ void LLXfer_File::init (const std::string& local_filename, BOOL delete_local_on_ | |||
95 | 95 | ||
96 | /////////////////////////////////////////////////////////// | 96 | /////////////////////////////////////////////////////////// |
97 | 97 | ||
98 | void LLXfer_File::free () | 98 | void LLXfer_File::cleanup () |
99 | { | 99 | { |
100 | if (mFp) | 100 | if (mFp) |
101 | { | 101 | { |
@@ -115,7 +115,7 @@ void LLXfer_File::free () | |||
115 | lldebugs << "Keeping local file: " << mLocalFilename << llendl; | 115 | lldebugs << "Keeping local file: " << mLocalFilename << llendl; |
116 | } | 116 | } |
117 | 117 | ||
118 | LLXfer::free(); | 118 | LLXfer::cleanup(); |
119 | } | 119 | } |
120 | 120 | ||
121 | /////////////////////////////////////////////////////////// | 121 | /////////////////////////////////////////////////////////// |
diff --git a/linden/indra/llmessage/llxfer_file.h b/linden/indra/llmessage/llxfer_file.h index 78f77a8..09b3228 100644 --- a/linden/indra/llmessage/llxfer_file.h +++ b/linden/indra/llmessage/llxfer_file.h | |||
@@ -53,7 +53,7 @@ class LLXfer_File : public LLXfer | |||
53 | virtual ~LLXfer_File(); | 53 | virtual ~LLXfer_File(); |
54 | 54 | ||
55 | virtual void init(const std::string& local_filename, BOOL delete_local_on_completion, S32 chunk_size); | 55 | virtual void init(const std::string& local_filename, BOOL delete_local_on_completion, S32 chunk_size); |
56 | virtual void free(); | 56 | virtual void cleanup(); |
57 | 57 | ||
58 | virtual S32 initializeRequest(U64 xfer_id, | 58 | virtual S32 initializeRequest(U64 xfer_id, |
59 | const std::string& local_filename, | 59 | const std::string& local_filename, |
diff --git a/linden/indra/llmessage/llxfer_mem.cpp b/linden/indra/llmessage/llxfer_mem.cpp index 3404520..0b8c5b1 100644 --- a/linden/indra/llmessage/llxfer_mem.cpp +++ b/linden/indra/llmessage/llxfer_mem.cpp | |||
@@ -48,7 +48,7 @@ LLXfer_Mem::LLXfer_Mem () | |||
48 | 48 | ||
49 | LLXfer_Mem::~LLXfer_Mem () | 49 | LLXfer_Mem::~LLXfer_Mem () |
50 | { | 50 | { |
51 | free(); | 51 | cleanup(); |
52 | } | 52 | } |
53 | 53 | ||
54 | /////////////////////////////////////////////////////////// | 54 | /////////////////////////////////////////////////////////// |
@@ -62,9 +62,9 @@ void LLXfer_Mem::init () | |||
62 | 62 | ||
63 | /////////////////////////////////////////////////////////// | 63 | /////////////////////////////////////////////////////////// |
64 | 64 | ||
65 | void LLXfer_Mem::free () | 65 | void LLXfer_Mem::cleanup () |
66 | { | 66 | { |
67 | LLXfer::free(); | 67 | LLXfer::cleanup(); |
68 | } | 68 | } |
69 | 69 | ||
70 | /////////////////////////////////////////////////////////// | 70 | /////////////////////////////////////////////////////////// |
diff --git a/linden/indra/llmessage/llxfer_mem.h b/linden/indra/llmessage/llxfer_mem.h index 0e67a06..cb2dd88 100644 --- a/linden/indra/llmessage/llxfer_mem.h +++ b/linden/indra/llmessage/llxfer_mem.h | |||
@@ -55,7 +55,7 @@ class LLXfer_Mem : public LLXfer | |||
55 | virtual ~LLXfer_Mem(); | 55 | virtual ~LLXfer_Mem(); |
56 | 56 | ||
57 | virtual void init(); | 57 | virtual void init(); |
58 | virtual void free(); | 58 | virtual void cleanup(); |
59 | 59 | ||
60 | virtual S32 startSend (U64 xfer_id, const LLHost &remote_host); | 60 | virtual S32 startSend (U64 xfer_id, const LLHost &remote_host); |
61 | virtual U64 registerXfer(U64 xfer_id, const void *datap, const S32 length); | 61 | virtual U64 registerXfer(U64 xfer_id, const void *datap, const S32 length); |
diff --git a/linden/indra/llmessage/llxfer_vfile.cpp b/linden/indra/llmessage/llxfer_vfile.cpp index aede763..a92c434 100644 --- a/linden/indra/llmessage/llxfer_vfile.cpp +++ b/linden/indra/llmessage/llxfer_vfile.cpp | |||
@@ -60,7 +60,7 @@ LLXfer_VFile::LLXfer_VFile (LLVFS *vfs, const LLUUID &local_id, LLAssetType::ETy | |||
60 | 60 | ||
61 | LLXfer_VFile::~LLXfer_VFile () | 61 | LLXfer_VFile::~LLXfer_VFile () |
62 | { | 62 | { |
63 | free(); | 63 | cleanup(); |
64 | } | 64 | } |
65 | 65 | ||
66 | /////////////////////////////////////////////////////////// | 66 | /////////////////////////////////////////////////////////// |
@@ -82,7 +82,7 @@ void LLXfer_VFile::init (LLVFS *vfs, const LLUUID &local_id, LLAssetType::EType | |||
82 | 82 | ||
83 | /////////////////////////////////////////////////////////// | 83 | /////////////////////////////////////////////////////////// |
84 | 84 | ||
85 | void LLXfer_VFile::free () | 85 | void LLXfer_VFile::cleanup () |
86 | { | 86 | { |
87 | LLVFile file(mVFS, mTempID, mType, LLVFile::WRITE); | 87 | LLVFile file(mVFS, mTempID, mType, LLVFile::WRITE); |
88 | file.remove(); | 88 | file.remove(); |
@@ -90,7 +90,7 @@ void LLXfer_VFile::free () | |||
90 | delete mVFile; | 90 | delete mVFile; |
91 | mVFile = NULL; | 91 | mVFile = NULL; |
92 | 92 | ||
93 | LLXfer::free(); | 93 | LLXfer::cleanup(); |
94 | } | 94 | } |
95 | 95 | ||
96 | /////////////////////////////////////////////////////////// | 96 | /////////////////////////////////////////////////////////// |
diff --git a/linden/indra/llmessage/llxfer_vfile.h b/linden/indra/llmessage/llxfer_vfile.h index 12d38ba..e7e1981 100644 --- a/linden/indra/llmessage/llxfer_vfile.h +++ b/linden/indra/llmessage/llxfer_vfile.h | |||
@@ -58,7 +58,7 @@ class LLXfer_VFile : public LLXfer | |||
58 | virtual ~LLXfer_VFile(); | 58 | virtual ~LLXfer_VFile(); |
59 | 59 | ||
60 | virtual void init(LLVFS *vfs, const LLUUID &local_id, LLAssetType::EType type); | 60 | virtual void init(LLVFS *vfs, const LLUUID &local_id, LLAssetType::EType type); |
61 | virtual void free(); | 61 | virtual void cleanup(); |
62 | 62 | ||
63 | virtual S32 initializeRequest(U64 xfer_id, | 63 | virtual S32 initializeRequest(U64 xfer_id, |
64 | LLVFS *vfs, | 64 | LLVFS *vfs, |
diff --git a/linden/indra/llmessage/llxfermanager.cpp b/linden/indra/llmessage/llxfermanager.cpp index 90188b6..f40612c 100644 --- a/linden/indra/llmessage/llxfermanager.cpp +++ b/linden/indra/llmessage/llxfermanager.cpp | |||
@@ -64,7 +64,7 @@ LLXferManager::LLXferManager (LLVFS *vfs) | |||
64 | 64 | ||
65 | LLXferManager::~LLXferManager () | 65 | LLXferManager::~LLXferManager () |
66 | { | 66 | { |
67 | free(); | 67 | cleanup(); |
68 | } | 68 | } |
69 | 69 | ||
70 | /////////////////////////////////////////////////////////// | 70 | /////////////////////////////////////////////////////////// |
@@ -86,7 +86,7 @@ void LLXferManager::init (LLVFS *vfs) | |||
86 | 86 | ||
87 | /////////////////////////////////////////////////////////// | 87 | /////////////////////////////////////////////////////////// |
88 | 88 | ||
89 | void LLXferManager::free () | 89 | void LLXferManager::cleanup () |
90 | { | 90 | { |
91 | LLXfer *xferp; | 91 | LLXfer *xferp; |
92 | LLXfer *delp; | 92 | LLXfer *delp; |
diff --git a/linden/indra/llmessage/llxfermanager.h b/linden/indra/llmessage/llxfermanager.h index 12b3ec0..77f3f60 100644 --- a/linden/indra/llmessage/llxfermanager.h +++ b/linden/indra/llmessage/llxfermanager.h | |||
@@ -114,7 +114,7 @@ class LLXferManager | |||
114 | virtual ~LLXferManager(); | 114 | virtual ~LLXferManager(); |
115 | 115 | ||
116 | virtual void init(LLVFS *vfs); | 116 | virtual void init(LLVFS *vfs); |
117 | virtual void free(); | 117 | virtual void cleanup(); |
118 | 118 | ||
119 | void setUseAckThrottling(const BOOL use); | 119 | void setUseAckThrottling(const BOOL use); |
120 | void setAckThrottleBPS(const F32 bps); | 120 | void setAckThrottleBPS(const F32 bps); |