hawkeye camera support(not tested)
This commit is contained in:
22
framework/Inspectron.HawkEye/UDT/CongestionControlFactory.cs
Normal file
22
framework/Inspectron.HawkEye/UDT/CongestionControlFactory.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace UdtSharp
|
||||
{
|
||||
|
||||
public abstract class CCVirtualFactory
|
||||
{
|
||||
public abstract CC create();
|
||||
public abstract CCVirtualFactory clone();
|
||||
}
|
||||
|
||||
public class CCFactory<T> : CCVirtualFactory where T : new()
|
||||
{
|
||||
public override CC create()
|
||||
{
|
||||
return new T() as CC;
|
||||
}
|
||||
|
||||
public override CCVirtualFactory clone()
|
||||
{
|
||||
return new CCFactory<T>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user