C# Class libopenpvp.net.RTMPSClient

Afficher le fichier Open project: mikolan/libopenpvp.net

Méthodes publiques

Свойство Type Description
lastDecode TypedObject

Protected Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
doHandshake ( ) : void

Executes a full RTMP handshake

Method Details

Close() public méthode

Closes the connection
public Close ( ) : void
Résultat void

Connect() public méthode

public Connect ( ) : void
Résultat void

GetResult() public méthode

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.
Résultat TypedObject

IsConnected() public méthode

Returns the next invoke ID
public IsConnected ( ) : bool
Résultat bool

PeekResult() public méthode

Removes and returns a result for a given invoke ID if it's ready.
public PeekResult ( int id ) : TypedObject
id int The invoke ID.
Résultat TypedObject

RTMPSClient() protected méthode

protected RTMPSClient ( ) : System
Résultat System

RTMPSClient() public méthode

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
Résultat System

SetConnectionInfo() public méthode

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
Résultat void

WriteInvoke() public méthode

Invokes something.
public WriteInvoke ( string destination, object operation, object body ) : int
destination string The destination
operation object The operation
body object The arguments
Résultat int

WriteInvokeWithCallback() public méthode

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.
Résultat int

join() public méthode

Waits until all results have been returned.
public join ( ) : void
Résultat void

join() public méthode

Waits until specified result returns.
public join ( int id ) : void
id int
Résultat void

nextInvokeID() protected méthode

Returns the next invoke ID to use.
protected nextInvokeID ( ) : int
Résultat int

wrapBody() protected méthode

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
Résultat TypedObject

Property Details

DSId protected_oe property

protected string DSId
Résultat string

aec protected_oe property

protected AMF3Encoder,libopenpvp.net aec
Résultat AMF3Encoder

app protected_oe property

protected string app
Résultat string

callbacks protected_oe property

protected Dictionary callbacks
Résultat AsyncCallback>.Dictionary

connected protected_oe property

protected bool connected
Résultat bool

input protected_oe property

protected NetworkStream input
Résultat NetworkStream

invokeID protected_oe property

protected int invokeID
Résultat int

lastDecode public_oe property

public TypedObject lastDecode
Résultat TypedObject

output protected_oe property

protected BufferedStream,System.IO output
Résultat System.IO.BufferedStream

pageUrl protected_oe property

protected string pageUrl
Résultat string

pendingInvokes protected_oe property

protected HashSet pendingInvokes
Résultat HashSet

port protected_oe property

protected int port
Résultat int

pr protected_oe property

protected RTMPPacketReader,libopenpvp.net pr
Résultat RTMPPacketReader

rand protected_oe property

protected Random,System rand
Résultat System.Random

server protected_oe property

protected string server
Résultat string

sslsocket protected_oe property

protected Socket sslsocket
Résultat Socket

swfUrl protected_oe property

protected string swfUrl
Résultat string