C# Класс libopenpvp.net.RTMPSClient

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
lastDecode TypedObject

Защищенные свойства (Protected)

Свойство Тип Описание
DSId string
aec AMF3Encoder
app string
callbacks AsyncCallback>.Dictionary
connected bool
input NetworkStream
invokeID int
output System.IO.BufferedStream
pageUrl string
pendingInvokes HashSet
port int
pr RTMPPacketReader
rand System.Random
server string
sslsocket Socket
swfUrl string

Открытые методы

Метод Описание
Close ( ) : void

Closes the connection

Connect ( ) : void
GetResult ( int id ) : TypedObject

Blocks and waits for the invoke's result to be ready. then removes and returns it.

IsConnected ( ) : bool

Returns the next invoke ID

PeekResult ( int id ) : TypedObject

Removes and returns a result for a given invoke ID if it's ready.

RTMPSClient ( string server, int port, string app, string swfUrl, string pageUrl ) : System

Sets up the client with given parameters

SetConnectionInfo ( string server, int port, string app, string swfUrl, string pageUrl ) : void

Sets up the client with given parameters

WriteInvoke ( string destination, object operation, object body ) : int

Invokes something.

WriteInvokeWithCallback ( string destination, object operation, object body, AsyncCallback cb ) : int

Invokes something asynchronously.

join ( ) : void

Waits until all results have been returned.

join ( int id ) : void

Waits until specified result returns.

Защищенные методы

Метод Описание
RTMPSClient ( ) : System
nextInvokeID ( ) : int

Returns the next invoke ID to use.

wrapBody ( object body, string destination, object operation ) : TypedObject

Sets up a body in a full RemotingMessage With headers, etc.

Приватные методы

Метод Описание
doHandshake ( ) : void

Executes a full RTMP handshake

Описание методов

Close() публичный Метод

Closes the connection
public Close ( ) : void
Результат void

Connect() публичный Метод

public Connect ( ) : void
Результат void

GetResult() публичный Метод

Blocks and waits for the invoke's result to be ready. then removes and returns it.
public GetResult ( int id ) : TypedObject
id int The invoke ID.
Результат TypedObject

IsConnected() публичный Метод

Returns the next invoke ID
public IsConnected ( ) : bool
Результат bool

PeekResult() публичный Метод

Removes and returns a result for a given invoke ID if it's ready.
public PeekResult ( int id ) : TypedObject
id int The invoke ID.
Результат TypedObject

RTMPSClient() защищенный Метод

protected RTMPSClient ( ) : System
Результат System

RTMPSClient() публичный Метод

Sets up the client with given parameters
public RTMPSClient ( string server, int port, string app, string swfUrl, string pageUrl ) : System
server string The RTMPS server address
port int the RTMPS server port
app string The app to use in connect call
swfUrl string the swf URL to use in connect call
pageUrl string the page URL to use in connect call
Результат System

SetConnectionInfo() публичный Метод

Sets up the client with given parameters
public SetConnectionInfo ( string server, int port, string app, string swfUrl, string pageUrl ) : void
server string The RTMPS server address
port int the RTMPS server port
app string The app to use in connect call
swfUrl string the swf URL to use in connect call
pageUrl string the page URL to use in connect call
Результат void

WriteInvoke() публичный Метод

Invokes something.
public WriteInvoke ( string destination, object operation, object body ) : int
destination string The destination
operation object The operation
body object The arguments
Результат int

WriteInvokeWithCallback() публичный Метод

Invokes something asynchronously.
public WriteInvokeWithCallback ( string destination, object operation, object body, AsyncCallback cb ) : int
destination string The destination
operation object The operation
body object The arguments
cb AsyncCallback The AsyncCallback that will recieve the result.
Результат int

join() публичный Метод

Waits until all results have been returned.
public join ( ) : void
Результат void

join() публичный Метод

Waits until specified result returns.
public join ( int id ) : void
id int
Результат void

nextInvokeID() защищенный Метод

Returns the next invoke ID to use.
protected nextInvokeID ( ) : int
Результат int

wrapBody() защищенный Метод

Sets up a body in a full RemotingMessage With headers, etc.
protected wrapBody ( object body, string destination, object operation ) : TypedObject
body object The body to wrap.
destination string The destination.
operation object The operation
Результат TypedObject

Описание свойств

DSId защищенное свойство

protected string DSId
Результат string

aec защищенное свойство

protected AMF3Encoder,libopenpvp.net aec
Результат AMF3Encoder

app защищенное свойство

protected string app
Результат string

callbacks защищенное свойство

protected Dictionary callbacks
Результат AsyncCallback>.Dictionary

connected защищенное свойство

protected bool connected
Результат bool

input защищенное свойство

protected NetworkStream input
Результат NetworkStream

invokeID защищенное свойство

protected int invokeID
Результат int

lastDecode публичное свойство

public TypedObject lastDecode
Результат TypedObject

output защищенное свойство

protected BufferedStream,System.IO output
Результат System.IO.BufferedStream

pageUrl защищенное свойство

protected string pageUrl
Результат string

pendingInvokes защищенное свойство

protected HashSet pendingInvokes
Результат HashSet

port защищенное свойство

protected int port
Результат int

pr защищенное свойство

protected RTMPPacketReader,libopenpvp.net pr
Результат RTMPPacketReader

rand защищенное свойство

protected Random,System rand
Результат System.Random

server защищенное свойство

protected string server
Результат string

sslsocket защищенное свойство

protected Socket sslsocket
Результат Socket

swfUrl защищенное свойство

protected string swfUrl
Результат string