Show / Hide Table of Contents

Class HostOptions

Various options for determining Swarm's BoundPeer identity.

Inheritance
Object
HostOptions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Net.Options
Assembly: Libplanet.Net.dll
Syntax
public class HostOptions

Constructors

| Improve this Doc View Source

HostOptions(String, IEnumerable<IceServer>, Int32)

Various options for determining Swarm's BoundPeer identity.

Declaration
public HostOptions(string host, IEnumerable<IceServer> iceServers, int port = 0)
Parameters
Type Name Description
String host
IEnumerable<IceServer> iceServers
Int32 port

Properties

| Improve this Doc View Source

Host

The hostname to be a part of a public endpoint that peers may use when they connect to this node. This is set to null when a non-empty IceServers is provided.

Declaration
public string Host { get; }
Property Value
Type Description
String
| Improve this Doc View Source

IceServers

The set of ICE servers to use for TURN/STUN to traverse NAT. This is empty when Host is provided.

Declaration
public IReadOnlyList<IceServer> IceServers { get; }
Property Value
Type Description
IReadOnlyList<IceServer>
| Improve this Doc View Source

Port

The port number to use for the host. If set to zero, a free port will be assigned.

Declaration
public int Port { get; }
Property Value
Type Description
Int32
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium