Show / Hide Table of Contents

Class PeerListenerFactory

Inheritance
System.Object
PeerListenerFactory
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.Client.Listeners
Assembly: MonoTorrent.dll
Syntax
public static class PeerListenerFactory

Methods

CreateTcp(Int32)

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

Declaration
public static IPeerListener CreateTcp(int port)
Parameters
Type Name Description
System.Int32 port

The local port to bind to.

Returns
Type Description
IPeerListener

CreateTcp(IPAddress, Int32)

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

Declaration
public static IPeerListener CreateTcp(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
IPeerListener

CreateTcp(IPEndPoint)

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

Declaration
public static IPeerListener CreateTcp(IPEndPoint endpoint)
Parameters
Type Name Description
System.Net.IPEndPoint endpoint

The local endpoint to bind to.

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