C# Class libopenpvp.net.RTMPSClient

显示文件 Open project: mikolan/libopenpvp.net

Public Properties

Property Type Description
lastDecode TypedObject

Protected Properties

Property 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

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
doHandshake ( ) : void

Executes a full RTMP handshake

Method Details

Close() public method

Closes the connection
public Close ( ) : void
return void

Connect() public method

public Connect ( ) : void
return void

GetResult() public method

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.
return TypedObject

IsConnected() public method

Returns the next invoke ID
public IsConnected ( ) : bool
return bool

PeekResult() public method

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

RTMPSClient() protected method

protected RTMPSClient ( ) : System
return System

RTMPSClient() public method

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
return System

SetConnectionInfo() public method

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
return void

WriteInvoke() public method

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

WriteInvokeWithCallback() public method

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.
return int

join() public method

Waits until all results have been returned.
public join ( ) : void
return void

join() public method

Waits until specified result returns.
public join ( int id ) : void
id int
return void

nextInvokeID() protected method

Returns the next invoke ID to use.
protected nextInvokeID ( ) : int
return int

wrapBody() protected method

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
return TypedObject

Property Details

DSId protected_oe property

protected string DSId
return string

aec protected_oe property

protected AMF3Encoder,libopenpvp.net aec
return AMF3Encoder

app protected_oe property

protected string app
return string

callbacks protected_oe property

protected Dictionary callbacks
return AsyncCallback>.Dictionary

connected protected_oe property

protected bool connected
return bool

input protected_oe property

protected NetworkStream input
return NetworkStream

invokeID protected_oe property

protected int invokeID
return int

lastDecode public_oe property

public TypedObject lastDecode
return TypedObject

output protected_oe property

protected BufferedStream,System.IO output
return System.IO.BufferedStream

pageUrl protected_oe property

protected string pageUrl
return string

pendingInvokes protected_oe property

protected HashSet pendingInvokes
return HashSet

port protected_oe property

protected int port
return int

pr protected_oe property

protected RTMPPacketReader,libopenpvp.net pr
return RTMPPacketReader

rand protected_oe property

protected Random,System rand
return System.Random

server protected_oe property

protected string server
return string

sslsocket protected_oe property

protected Socket sslsocket
return Socket

swfUrl protected_oe property

protected string swfUrl
return string