Show / Hide Table of Contents

Class DhtListenerFactory

Inheritance
System.Object
DhtListenerFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MonoTorrent.Dht.Listeners
Assembly: MonoTorrent.dll
Syntax
public static class DhtListenerFactory

Methods

CreateUdp(Int32)

Creates a listener which binds to IPAddress.Any and listens for incoming UDP requests on the given local port.

Declaration
public static IDhtListener CreateUdp(int port)
Parameters
Type Name Description
System.Int32 port

The local port to bind to.

Returns
Type Description
IDhtListener

CreateUdp(IPAddress, Int32)

Creates a listener which listens for incoming UDP requests on the given local IP address and port.

Declaration
public static IDhtListener CreateUdp(IPAddress address, int port)
Parameters
Type Name Description
System.Net.IPAddress address

The local IP address to bind to.

System.Int32 port

The local port to bind to.

Returns
Type Description
IDhtListener

CreateUdp(IPEndPoint)

Creates a listener which listens for incoming UDP requests on the given local IP address and port.

Declaration
public static IDhtListener CreateUdp(IPEndPoint endpoint)
Parameters
Type Name Description
System.Net.IPEndPoint endpoint

The local endpoint to bind to.

Returns
Type Description
IDhtListener
In This Article
Back to top Generated by DocFX