Last active
November 4, 2015 18:26
-
-
Save jakesays-old/2fea62d8ef39eec54b7c to your computer and use it in GitHub Desktop.
Packet Header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Std.ServiceFramework.Communication | |
| { | |
| internal enum PacketSignature : uint | |
| { | |
| Valid = 0x42424242, | |
| Failover = 0x43434343 | |
| } | |
| [StructLayout(LayoutKind.Sequential)] | |
| internal struct MessagePacketHeader | |
| { | |
| public PacketSignature Signature; | |
| public uint RemotingVersion; | |
| public LocalIpEndpoint LocalEndpoint; | |
| public uint Length; | |
| //not currently used | |
| public ushort MessageType; | |
| public ushort Unused; | |
| unsafe public static int SizeOf | |
| { | |
| get { return sizeof (MessagePacketHeader); } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment