aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llpacketack.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llmessage/llpacketack.h
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llpacketack.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/linden/indra/llmessage/llpacketack.h b/linden/indra/llmessage/llpacketack.h
index e8d598a..c86fb0f 100644
--- a/linden/indra/llmessage/llpacketack.h
+++ b/linden/indra/llmessage/llpacketack.h
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 5 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -63,6 +64,14 @@ public:
63public: 64public:
64 LLReliablePacketParams() 65 LLReliablePacketParams()
65 { 66 {
67 clear();
68 };
69
70 ~LLReliablePacketParams() { };
71
72 void clear()
73 {
74 mHost.invalidate();
66 mRetries = 0; 75 mRetries = 0;
67 mPingBasedRetry = TRUE; 76 mPingBasedRetry = TRUE;
68 mTimeout = 0.f; 77 mTimeout = 0.f;
@@ -71,8 +80,6 @@ public:
71 mMessageName = NULL; 80 mMessageName = NULL;
72 }; 81 };
73 82
74 ~LLReliablePacketParams() { };
75
76 void set ( const LLHost &host, S32 retries, BOOL ping_based_retry, 83 void set ( const LLHost &host, S32 retries, BOOL ping_based_retry,
77 F32 timeout, 84 F32 timeout,
78 void (*callback)(void **,S32), void **callback_data, char *name ) 85 void (*callback)(void **,S32), void **callback_data, char *name )
@@ -136,7 +143,13 @@ public:
136 143
137 } 144 }
138 }; 145 };
139 ~LLReliablePacket(){ delete [] mBuffer; }; 146
147 ~LLReliablePacket()
148 {
149 mCallback = NULL;
150 delete [] mBuffer;
151 mBuffer = NULL;
152 };
140 153
141 friend class LLCircuitData; 154 friend class LLCircuitData;
142protected: 155protected: