C# Class CSharpRTMP.Core.NetIO.UDPCarrier

Inheritance: IOHandler
Datei anzeigen Open project: langhuihui/csharprtmp Class Usage Examples

Public Properties

Property Type Description
NearIP string
NearPort int
Parameters Variant
Rx int

Public Methods

Method Description
Create ( string bindIp, int bindPort ) : UDPCarrier
Create ( string bindIp, ushort bindPort, BaseProtocol pProtocol ) : UDPCarrier
GetStats ( Variant info ) : bool
GetStats ( Variant info, uint namespaceId ) : void
OnEvent ( SocketAsyncEventArgs e ) : bool
SetReceiveBuffer ( InputStream ms, SocketAsyncEventArgs socketAsyncEventArgs, int size ) : bool
SignalOutputData ( EndPoint address, MemoryStream outputStream ) : bool
StartAccept ( ) : bool
UDPCarrier ( Socket socket ) : System

Private Methods

Method Description
GetEndpointsInfo ( ) : bool

Method Details

Create() public static method

public static Create ( string bindIp, int bindPort ) : UDPCarrier
bindIp string
bindPort int
return UDPCarrier

Create() public static method

public static Create ( string bindIp, ushort bindPort, BaseProtocol pProtocol ) : UDPCarrier
bindIp string
bindPort ushort
pProtocol CSharpRTMP.Core.Protocols.BaseProtocol
return UDPCarrier

GetStats() public method

public GetStats ( Variant info ) : bool
info Variant
return bool

GetStats() public method

public GetStats ( Variant info, uint namespaceId ) : void
info Variant
namespaceId uint
return void

OnEvent() public method

public OnEvent ( SocketAsyncEventArgs e ) : bool
e System.Net.Sockets.SocketAsyncEventArgs
return bool

SetReceiveBuffer() public method

public SetReceiveBuffer ( InputStream ms, SocketAsyncEventArgs socketAsyncEventArgs, int size ) : bool
ms CSharpRTMP.Common.InputStream
socketAsyncEventArgs System.Net.Sockets.SocketAsyncEventArgs
size int
return bool

SignalOutputData() public method

public SignalOutputData ( EndPoint address, MemoryStream outputStream ) : bool
address System.Net.EndPoint
outputStream System.IO.MemoryStream
return bool

StartAccept() public method

public StartAccept ( ) : bool
return bool

UDPCarrier() public method

public UDPCarrier ( Socket socket ) : System
socket Socket
return System

Property Details

NearIP public_oe property

public string NearIP
return string

NearPort public_oe property

public int NearPort
return int

Parameters public_oe property

public Variant Parameters
return Variant

Rx public_oe property

public int Rx
return int