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

ファイルを表示 Open project: langhuihui/csharprtmp Class Usage Examples

Public Methods

Method Description
BeginDiffieHellman ( byte &pubKey, bool initiator = false ) : DHWrapper
CheckSum ( Stream s ) : ushort
ComputeAsymetricKeys ( byte sharedSecret, byte initiatorNonce, byte responderNonce, byte &requestKey, byte &responseKey ) : void
Decode ( AESEngine aesDecrypt, N2HBinaryReader packet ) : bool
EncodeAndPack ( AESEngine aesEncrypt, H2NBinaryWriter writer, uint farId, int ignore ) : void
ReadCRC ( N2HBinaryReader packet ) : bool
Time ( System.TimeSpan timeSpan ) : ushort
TimeNow ( ) : ushort
UnpackUrl ( string url, string &path, NameValueCollection &properties ) : void
UnpackUrl ( string url, string &host, ushort &port, string &path, NameValueCollection &properties ) : void

Method Details

BeginDiffieHellman() public static method

public static BeginDiffieHellman ( byte &pubKey, bool initiator = false ) : DHWrapper
pubKey byte
initiator bool
return CSharpRTMP.Common.DHWrapper

CheckSum() public static method

public static CheckSum ( Stream s ) : ushort
s Stream
return ushort

ComputeAsymetricKeys() public static method

public static ComputeAsymetricKeys ( byte sharedSecret, byte initiatorNonce, byte responderNonce, byte &requestKey, byte &responseKey ) : void
sharedSecret byte
initiatorNonce byte
responderNonce byte
requestKey byte
responseKey byte
return void

Decode() public static method

public static Decode ( AESEngine aesDecrypt, N2HBinaryReader packet ) : bool
aesDecrypt AESEngine
packet CSharpRTMP.Common.N2HBinaryReader
return bool

EncodeAndPack() public static method

public static EncodeAndPack ( AESEngine aesEncrypt, H2NBinaryWriter writer, uint farId, int ignore ) : void
aesEncrypt AESEngine
writer CSharpRTMP.Common.H2NBinaryWriter
farId uint
ignore int
return void

ReadCRC() public static method

public static ReadCRC ( N2HBinaryReader packet ) : bool
packet CSharpRTMP.Common.N2HBinaryReader
return bool

Time() public static method

public static Time ( System.TimeSpan timeSpan ) : ushort
timeSpan System.TimeSpan
return ushort

TimeNow() public static method

public static TimeNow ( ) : ushort
return ushort

UnpackUrl() public static method

public static UnpackUrl ( string url, string &path, NameValueCollection &properties ) : void
url string
path string
properties System.Collections.Specialized.NameValueCollection
return void

UnpackUrl() public static method

public static UnpackUrl ( string url, string &host, ushort &port, string &path, NameValueCollection &properties ) : void
url string
host string
port ushort
path string
properties System.Collections.Specialized.NameValueCollection
return void