Skip to content

Instantly share code, notes, and snippets.

@jakesays-old
Last active November 4, 2015 18:26
Show Gist options
  • Select an option

  • Save jakesays-old/2fea62d8ef39eec54b7c to your computer and use it in GitHub Desktop.

Select an option

Save jakesays-old/2fea62d8ef39eec54b7c to your computer and use it in GitHub Desktop.
Packet Header
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