Show / Hide Table of Contents

Class AutoDialer

Maintains a minimum number of peer connections.

Inheritance
Object
AutoDialer
Implements
IDisposable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: PeerTalk
Assembly: PeerTalk.dll
Syntax
public class AutoDialer : IDisposable
Remarks

Listens to the Swarm and automically dials a new Peer when required.

Constructors

| Improve this Doc View Source

AutoDialer(Swarm)

Creates a new instance of the AutoDialer class.

Declaration
public AutoDialer(Swarm swarm)
Parameters
Type Name Description
Swarm swarm

Provides access to other peers.

Fields

| Improve this Doc View Source

DefaultMinConnections

The default minimum number of connections to maintain (16).

Declaration
public const int DefaultMinConnections = 16
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

MinConnections

The low water mark for peer connections.

Declaration
public int MinConnections { get; set; }
Property Value
Type Description
Int32

Defaults to DefaultMinConnections.

Remarks

Setting this to zero will basically disable the auto dial features.

Methods

| Improve this Doc View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(Boolean)

Releases the unmanaged and optionally managed resources.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX