C# Class CSharpRTMP.Core.Protocols.Rtmfp.FlowWriter

Inheritance: IDisposable
Datei anzeigen Open project: langhuihui/csharprtmp Class Usage Examples

Public Properties

Property Type Description
Band Session
CallbackHandle double
Closed bool
Critical bool
FlowId ulong
Id ulong
Obj string
Reliable bool
Signature string

Public Methods

Method Description
Acknowledgment ( N2HBinaryReader reader ) : void
BeginTransaction ( ) : void
Clear ( ) : void
Close ( ) : void
Connect ( Variant connectArgs, Variant>.Action callback ) : void
CreateStream ( Variant>.Action callback ) : void
Dispose ( ) : void
EndTransaction ( uint numberOfCancel ) : void
Fail ( string error ) : void
FlowWriter ( FlowWriter flowWriter ) : System
FlowWriter ( string signature, Session band, ulong flowId ) : System
Flush ( H2NBinaryWriter writer, ulong stage, byte flags, bool header, N2HBinaryReader reader, ushort size ) : void
Flush ( bool full = false ) : void
Manage ( ) : void
NewStreamWriter ( byte type ) : StreamWriter
Play ( string name ) : void
Reset ( ulong id ) : void
SetPeerInfo ( IPEndPoint ipEndPoint ) : void
WriteAMFMessage ( string name, double callBackHandle ) : AMF0Writer
WriteAMFPacket ( string name ) : AMF0Writer
WriteAMFRequestMessage ( string name, double callBackHandle ) : AMF0Writer
WriteAMFResponse ( string name, string code, string description ) : AMFObjectWriter
WriteAMFResult ( ) : AMF0Writer
WriteErrorResponse ( string code, string description ) : void
WriteFlexMessage ( string name, double callBackHandle ) : AMF0Writer
WriteStatusResponse ( string code, string description ) : void
WriteSuccessResponse ( string code, string description ) : AMFObjectWriter
WriteUnbufferedMessage ( MemoryStream bufferWithOffset, MemoryStream memAck = null ) : void
WriterRawMessage ( bool withoutHeader = false ) : H2NBinaryWriter

Protected Methods

Method Description
AckMessageHandler ( uint ackCount, uint lostCount, object reader1, uint available, uint size ) : void
Reset ( uint count ) : void

Private Methods

Method Description
CreateBufferedMessage ( ) : MessageBuffered
HeaderSize ( ulong stage ) : uint
RaiseMessage ( ) : void
WriteRequetHeader ( AMF0Writer writer, string name, double callbackHandle ) : void
WriteResponseHeader ( AMF0Writer writer, string name, double callbackHandle ) : void

Method Details

AckMessageHandler() protected method

protected AckMessageHandler ( uint ackCount, uint lostCount, object reader1, uint available, uint size ) : void
ackCount uint
lostCount uint
reader1 object
available uint
size uint
return void

Acknowledgment() public method

public Acknowledgment ( N2HBinaryReader reader ) : void
reader CSharpRTMP.Common.N2HBinaryReader
return void

BeginTransaction() public method

public BeginTransaction ( ) : void
return void

Clear() public method

public Clear ( ) : void
return void

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( Variant connectArgs, Variant>.Action callback ) : void
connectArgs Variant
callback Variant>.Action
return void

CreateStream() public method

public CreateStream ( Variant>.Action callback ) : void
callback Variant>.Action
return void

Dispose() public method

public Dispose ( ) : void
return void

EndTransaction() public method

public EndTransaction ( uint numberOfCancel ) : void
numberOfCancel uint
return void

Fail() public method

public Fail ( string error ) : void
error string
return void

FlowWriter() public method

public FlowWriter ( FlowWriter flowWriter ) : System
flowWriter FlowWriter
return System

FlowWriter() public method

public FlowWriter ( string signature, Session band, ulong flowId ) : System
signature string
band Session
flowId ulong
return System

Flush() public method

public Flush ( H2NBinaryWriter writer, ulong stage, byte flags, bool header, N2HBinaryReader reader, ushort size ) : void
writer H2NBinaryWriter
stage ulong
flags byte
header bool
reader N2HBinaryReader
size ushort
return void

Flush() public method

public Flush ( bool full = false ) : void
full bool
return void

Manage() public method

public Manage ( ) : void
return void

NewStreamWriter() public method

public NewStreamWriter ( byte type ) : StreamWriter
type byte
return StreamWriter

Play() public method

public Play ( string name ) : void
name string
return void

Reset() protected method

protected Reset ( uint count ) : void
count uint
return void

Reset() public method

public Reset ( ulong id ) : void
id ulong
return void

SetPeerInfo() public method

public SetPeerInfo ( IPEndPoint ipEndPoint ) : void
ipEndPoint IPEndPoint
return void

WriteAMFMessage() public method

public WriteAMFMessage ( string name, double callBackHandle ) : AMF0Writer
name string
callBackHandle double
return AMF0Writer

WriteAMFPacket() public method

public WriteAMFPacket ( string name ) : AMF0Writer
name string
return AMF0Writer

WriteAMFRequestMessage() public method

public WriteAMFRequestMessage ( string name, double callBackHandle ) : AMF0Writer
name string
callBackHandle double
return AMF0Writer

WriteAMFResponse() public method

public WriteAMFResponse ( string name, string code, string description ) : AMFObjectWriter
name string
code string
description string
return AMFObjectWriter

WriteAMFResult() public method

public WriteAMFResult ( ) : AMF0Writer
return AMF0Writer

WriteErrorResponse() public method

public WriteErrorResponse ( string code, string description ) : void
code string
description string
return void

WriteFlexMessage() public method

public WriteFlexMessage ( string name, double callBackHandle ) : AMF0Writer
name string
callBackHandle double
return AMF0Writer

WriteStatusResponse() public method

public WriteStatusResponse ( string code, string description ) : void
code string
description string
return void

WriteSuccessResponse() public method

public WriteSuccessResponse ( string code, string description ) : AMFObjectWriter
code string
description string
return AMFObjectWriter

WriteUnbufferedMessage() public method

public WriteUnbufferedMessage ( MemoryStream bufferWithOffset, MemoryStream memAck = null ) : void
bufferWithOffset MemoryStream
memAck MemoryStream
return void

WriterRawMessage() public method

public WriterRawMessage ( bool withoutHeader = false ) : H2NBinaryWriter
withoutHeader bool
return H2NBinaryWriter

Property Details

Band public_oe property

public Session Band
return Session

CallbackHandle public_oe property

public double CallbackHandle
return double

Closed public_oe property

public bool Closed
return bool

Critical public_oe property

public bool Critical
return bool

FlowId public_oe property

public ulong FlowId
return ulong

Id public_oe property

public ulong Id
return ulong

Obj public_oe property

public string Obj
return string

Reliable public_oe property

public bool Reliable
return bool

Signature public_oe property

public string Signature
return string