DataIn Event
(TBD rename to DataIn.evt) Fires when data is received from a peer.
Syntax
public event OnDataInHandler OnDataIn; public delegate void OnDataInHandler(object sender, TurnDataInEventArgs e); public class TurnDataInEventArgs : EventArgs { public string PeerIP { get; } public int PeerPort { get; } public string ChannelId { get; } public string Data { get; }
public byte[] DataB { get; } }
Public Event OnDataIn As OnDataInHandler Public Delegate Sub OnDataInHandler(sender As Object, e As TurnDataInEventArgs) Public Class TurnDataInEventArgs Inherits EventArgs Public ReadOnly Property PeerIP As String Public ReadOnly Property PeerPort As Integer Public ReadOnly Property ChannelId As String Public ReadOnly Property Data As String
Public ReadOnly Property DataB As Byte() End Class
Remarks
This event fires anytime data is received from a peer via the TURN server.
The PeerIP and PeerPort parameters reflect the IP address and port of the peer that sent the data.
The ChannelId parameter reflects Id of the channel that the server used to send the data to the component. This parameter will be empty if the server sent the data in an indication rather than over a channel.
The Data parameter contains the incoming data.