Loupe - Log - Monitor - Resolve
Gibraltar.Messaging.Net Namespace / NetworkSerializer Class / ReadNext Method

In This Topic
    ReadNext Method
    In This Topic
    Read the next network packets in the buffer
    Syntax
    'Declaration
     
    
    Public Function ReadNext() As NetworkMessage
    public NetworkMessage ReadNext()

    Return Value

    A complete packet or null if there isn't enough data to make a packet
    Remarks
    Since packets may be spread across multiple packets the serializer keeps a buffer of any unused bytes for the next read. This means a Read call may return zero or one network packets
    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