Class TurnClient
Assembly: Libplanet.Stun.dll
Syntax
public class TurnClient : IStunContext, IDisposable
Fields
|
Improve this Doc
View Source
TurnDefaultPort
Declaration
public const int TurnDefaultPort = 3478
Field Value
Properties
|
Improve this Doc
View Source
BehindNAT
Declaration
public bool BehindNAT { get; }
Property Value
|
Improve this Doc
View Source
EndPoint
Declaration
public DnsEndPoint EndPoint { get; }
Property Value
|
Improve this Doc
View Source
Nonce
Declaration
public byte[] Nonce { get; }
Property Value
|
Improve this Doc
View Source
Password
Declaration
public string Password { get; }
Property Value
|
Improve this Doc
View Source
PublicAddress
Declaration
public IPAddress PublicAddress { get; }
Property Value
|
Improve this Doc
View Source
Realm
Declaration
public string Realm { get; }
Property Value
|
Improve this Doc
View Source
Username
Declaration
public string Username { get; }
Property Value
Methods
|
Improve this Doc
View Source
AcceptRelayedStreamAsync(CancellationToken)
Declaration
public async Task<NetworkStream> AcceptRelayedStreamAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Returns
|
Improve this Doc
View Source
AllocateRequestAsync(TimeSpan, CancellationToken)
Declaration
public async Task<IPEndPoint> AllocateRequestAsync(TimeSpan lifetime, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Returns
|
Improve this Doc
View Source
Create(IEnumerable<IIceServer>, CancellationToken)
Creates a TurnClient that is connectable to one of
the s given.
Declaration
public static async Task<TurnClient> Create(IEnumerable<IIceServer> iceServers, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Returns
Exceptions
|
Improve this Doc
View Source
CreatePermissionAsync(IPEndPoint, CancellationToken)
Declaration
public async Task CreatePermissionAsync(IPEndPoint peerAddress, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Returns
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
GetMappedAddressAsync(CancellationToken)
Declaration
public async Task<IPEndPoint> GetMappedAddressAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Returns
|
Improve this Doc
View Source
InitializeTurnAsync(CancellationToken)
Declaration
public async Task InitializeTurnAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Improve this Doc
View Source
IsBehindNAT(CancellationToken)
Declaration
public async Task<bool> IsBehindNAT(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Returns
|
Improve this Doc
View Source
ReconnectTurn(Int32, CancellationToken)
Declaration
public async Task ReconnectTurn(int listenPort, CancellationToken cancellationToken)
Parameters
Returns
|
Improve this Doc
View Source
RefreshAllocationAsync(TimeSpan, CancellationToken)
Declaration
public async Task<TimeSpan> RefreshAllocationAsync(TimeSpan lifetime, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Returns
|
Improve this Doc
View Source
StartAsync(Int32, CancellationToken)
Declaration
public async Task StartAsync(int listenPort, CancellationToken cancellationToken)
Parameters
Returns
Implements