* 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:
John Hurliman
2009-05-08 06:38:28 +00:00
parent 9d0c803450
commit 79beceeb1d
11 changed files with 3082 additions and 3853 deletions

View File

@@ -989,16 +989,16 @@ namespace WinGridProxy
return result.ToString();
}
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" : " ")
+ "]"
;
}
@@ -1018,7 +1018,7 @@ namespace WinGridProxy
result.AppendLine("[Packet Header]");
// payload
result.AppendFormat("Sequence: {0}" + System.Environment.NewLine, packet.Header.Sequence);
result.AppendFormat(" Options: {0}" + System.Environment.NewLine, InterpretOptions(packet.Header.Flags));
result.AppendFormat(" Options: {0}" + System.Environment.NewLine, InterpretOptions(packet.Header));
result.AppendLine();
result.AppendLine("[Packet Payload]");