Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Messaging.Net Namespace / NetworkMessage Class / ReadHeader Method
The raw data
The length of the packet
The type of the packet
The schema of the packet

In This Topic
    ReadHeader Method
    In This Topic
    Peek at the byte data and see if there's a full packet header
    Syntax
    'Declaration
     
    
    Public Shared Function ReadHeader( _
       ByVal stream As Stream, _
       ByRef packetLength As Integer, _
       ByRef typeCode As NetworkMessageTypeCode, _
       ByRef version As Version _
    ) As Boolean
    public static bool ReadHeader( 
       Stream stream,
       out int packetLength,
       out NetworkMessageTypeCode typeCode,
       out Version version
    )

    Parameters

    stream
    The raw data
    packetLength
    The length of the packet
    typeCode
    The type of the packet
    version
    The schema of the packet

    Return Value

    True if the header could be read, false if there wasn't enough data
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also