aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llpacketring.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/llpacketring.h')
-rw-r--r--linden/indra/llmessage/llpacketring.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/llmessage/llpacketring.h b/linden/indra/llmessage/llpacketring.h
index e914a32..4408abe 100644
--- a/linden/indra/llmessage/llpacketring.h
+++ b/linden/indra/llmessage/llpacketring.h
@@ -18,7 +18,8 @@
18 * There are special exceptions to the terms and conditions of the GPL as 18 * There are special exceptions to the terms and conditions of the GPL as
19 * it is applied to this Source Code. View the full text of the exception 19 * it is applied to this Source Code. View the full text of the exception
20 * in the file doc/FLOSS-exception.txt in this software distribution, or 20 * in the file doc/FLOSS-exception.txt in this software distribution, or
21 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 21 * online at
22 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
22 * 23 *
23 * By copying, modifying or distributing this software, you acknowledge 24 * By copying, modifying or distributing this software, you acknowledge
24 * that you have read and understood your obligations described above, 25 * that you have read and understood your obligations described above,
@@ -61,6 +62,7 @@ public:
61 BOOL sendPacket(int h_socket, char * send_buffer, S32 buf_size, LLHost host); 62 BOOL sendPacket(int h_socket, char * send_buffer, S32 buf_size, LLHost host);
62 63
63 inline LLHost getLastSender(); 64 inline LLHost getLastSender();
65 inline LLHost getLastReceivingInterface();
64 66
65 S32 getAndResetActualInBits() { S32 bits = mActualBitsIn; mActualBitsIn = 0; return bits;} 67 S32 getAndResetActualInBits() { S32 bits = mActualBitsIn; mActualBitsIn = 0; return bits;}
66 S32 getAndResetActualOutBits() { S32 bits = mActualBitsOut; mActualBitsOut = 0; return bits;} 68 S32 getAndResetActualOutBits() { S32 bits = mActualBitsOut; mActualBitsOut = 0; return bits;}
@@ -85,6 +87,7 @@ protected:
85 std::queue<LLPacketBuffer *> mSendQueue; 87 std::queue<LLPacketBuffer *> mSendQueue;
86 88
87 LLHost mLastSender; 89 LLHost mLastSender;
90 LLHost mLastReceivingIF;
88}; 91};
89 92
90 93
@@ -93,4 +96,9 @@ inline LLHost LLPacketRing::getLastSender()
93 return mLastSender; 96 return mLastSender;
94} 97}
95 98
99inline LLHost LLPacketRing::getLastReceivingInterface()
100{
101 return mLastReceivingIF;
102}
103
96#endif 104#endif