* Rewrote the Header class as a struct and optimize for speed. This shouldn't be a breaking change for most apps, but GridProxy and WinGridProxy will need to be tested as thoroughly as possible. Important to note is that Packet.Header.AckList can be null now
* 404 checking in SeedRequestCompleteHandler * A few new big endian conversion methods in Utils git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2709 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -415,9 +415,9 @@ public class Analyst : ProxyPlugin
|
||||
return;
|
||||
}
|
||||
|
||||
packet.Header.Flags |= Helpers.MSG_RELIABLE;
|
||||
packet.Header.Reliable = true;
|
||||
//if (protocolManager.Command(name).Encoded)
|
||||
// packet.Header.Flags |= Helpers.MSG_ZEROCODED;
|
||||
// packet.Header.Zerocoded = true;
|
||||
proxy.InjectPacket(packet, direction);
|
||||
|
||||
SayToUser("injected " + words[1]);
|
||||
@@ -836,7 +836,7 @@ public class Analyst : ProxyPlugin
|
||||
, direction == Direction.Incoming ? "<--" : "-->"
|
||||
, endPoint
|
||||
, packet.Header.Sequence
|
||||
, InterpretOptions(packet.Header.Flags)
|
||||
, InterpretOptions(packet.Header)
|
||||
, Environment.NewLine
|
||||
, packetText
|
||||
);
|
||||
@@ -849,16 +849,16 @@ public class Analyst : ProxyPlugin
|
||||
}
|
||||
|
||||
// InterpretOptions: produce a string representing a packet's header options
|
||||
private static string InterpretOptions(byte options)
|
||||
private static string InterpretOptions(Header header)
|
||||
{
|
||||
return "["
|
||||
+ ((options & Helpers.MSG_APPENDED_ACKS) != 0 ? "Ack" : " ")
|
||||
+ (header.AppendedAcks ? "Ack" : " ")
|
||||
+ " "
|
||||
+ ((options & Helpers.MSG_RESENT) != 0 ? "Res" : " ")
|
||||
+ (header.Resent ? "Res" : " ")
|
||||
+ " "
|
||||
+ ((options & Helpers.MSG_RELIABLE) != 0 ? "Rel" : " ")
|
||||
+ (header.Reliable ? "Rel" : " ")
|
||||
+ " "
|
||||
+ ((options & Helpers.MSG_ZEROCODED) != 0 ? "Zer" : " ")
|
||||
+ (header.Zerocoded ? "Zer" : " ")
|
||||
+ "]"
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user