Class AutoDialer
Maintains a minimum number of peer connections.
Implements
Inherited Members
Namespace: PeerTalk
Assembly: PeerTalk.dll
Syntax
public class AutoDialer : IDisposable
Remarks
Constructors
| Improve this Doc View SourceAutoDialer(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 SourceDefaultMinConnections
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 SourceMinConnections
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 SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
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. |