Loupe - Log - Monitor - Resolve
Gibraltar.Monitor.Serialization Namespace / LogMessagePacketFactory Class / CreatePacket Method
Definition of the fields expected in the next packet
Data stream to be read

In This Topic
    CreatePacket Method (LogMessagePacketFactory)
    In This Topic
    This is the method that is invoked on an IPacketFactory to create an IPacket from the data in an IFieldReader given a specified PacketDefinition.
    Syntax
    'Declaration
     
    
    Public Function CreatePacket( _
       ByVal definition As PacketDefinition, _
       ByVal reader As IFieldReader _
    ) As IPacket
    public IPacket CreatePacket( 
       PacketDefinition definition,
       IFieldReader reader
    )

    Parameters

    definition
    Definition of the fields expected in the next packet
    reader
    Data stream to be read

    Return Value

    An IPacket corresponding to the PacketDefinition and the stream 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