C# 클래스 libopenpvp.net.RTMPSClient

파일 보기 프로젝트 열기: mikolan/libopenpvp.net

공개 프로퍼티들

프로퍼티 타입 설명
lastDecode TypedObject

보호된 프로퍼티들

프로퍼티 타입 설명
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