Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 



BaseTransport.OnTempStream

BaseTransport    


This event creates temporary stream for large message preparation/unpreparation by transformers

Declaration

[C++]
    typedef void (STDCALLCONV *MCTemporaryStreamEvent)(void* UserData, void* Sender, MCStream* &Stream);
    public void setOnTempStream(MCTemporaryStreamEvent Value, void *UserData = NULL);
    public MCTemporaryStreamEvent getOnTempStream(void * *UserData);

[Pascal]
    property OnTempStream: TMCTemporaryStreamEvent;
    TMCTemporaryStreamEvent = procedure (Sender :TObject; var Stream : TStream) of object;

Not available

[C#]
    public MCTemporaryStreamEvent OnTempStream;
    public delegate void MCTemporaryStreamEvent(object Sender, ref System.IO.Stream OutStream);

[VB.NET]
    Public Event OnTempStream As MCTemporaryStreamEvent
    Public Delegate Sub MCTemporaryStreamEvent(ByVal Sender As Object, ByRef OutStream as System.IO.Stream)

[Java]
    public class MCTempStreamEvent {
        public MCRouter getSender();
        public MCStream getStream();
        public void setStream(MCStream value);
    }
    public abstract interface MCTempStreamListener {
        public void handleOnTempStream(MCTempStreamEvent e);
    }
    public void removeTempStreamListener();
    public void addTempStreamListener(MCTempStreamListener l);

[Java ME]
    not available

[DLL]
    not available

Parameters

  • Stream - the stream to use in transformation.

Description

This event is fired when one of transformer classes, linked to BaseTransport needs to perform transforming of large data block. Your code can allocate a temporary stream where temporary data will be stored. This stream will be closed by the transformer class.

Discuss this help topic in MsgConnect Forum