mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-12 10:40:24 +01:00
trim nat project
This commit is contained in:
@@ -52,43 +52,5 @@ namespace Mono.Nat
|
||||
}
|
||||
|
||||
public abstract Task CreatePortMap(Mapping mapping);
|
||||
|
||||
public virtual void DeletePortMap (Mapping mapping)
|
||||
{
|
||||
IAsyncResult result = BeginDeletePortMap (mapping, null, mapping);
|
||||
EndDeletePortMap(result);
|
||||
}
|
||||
|
||||
public virtual Mapping[] GetAllMappings ()
|
||||
{
|
||||
IAsyncResult result = BeginGetAllMappings (null, null);
|
||||
return EndGetAllMappings (result);
|
||||
}
|
||||
|
||||
public virtual IPAddress GetExternalIP ()
|
||||
{
|
||||
IAsyncResult result = BeginGetExternalIP(null, null);
|
||||
return EndGetExternalIP(result);
|
||||
}
|
||||
|
||||
public virtual Mapping GetSpecificMapping (Protocol protocol, int port)
|
||||
{
|
||||
IAsyncResult result = this.BeginGetSpecificMapping (protocol, port, null, null);
|
||||
return this.EndGetSpecificMapping(result);
|
||||
}
|
||||
|
||||
public abstract IAsyncResult BeginCreatePortMap(Mapping mapping, AsyncCallback callback, object asyncState);
|
||||
public abstract IAsyncResult BeginDeletePortMap (Mapping mapping, AsyncCallback callback, object asyncState);
|
||||
|
||||
public abstract IAsyncResult BeginGetAllMappings (AsyncCallback callback, object asyncState);
|
||||
public abstract IAsyncResult BeginGetExternalIP (AsyncCallback callback, object asyncState);
|
||||
public abstract IAsyncResult BeginGetSpecificMapping(Protocol protocol, int externalPort, AsyncCallback callback, object asyncState);
|
||||
|
||||
public abstract void EndCreatePortMap (IAsyncResult result);
|
||||
public abstract void EndDeletePortMap (IAsyncResult result);
|
||||
|
||||
public abstract Mapping[] EndGetAllMappings (IAsyncResult result);
|
||||
public abstract IPAddress EndGetExternalIP (IAsyncResult result);
|
||||
public abstract Mapping EndGetSpecificMapping (IAsyncResult result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user