2018-11-28 14:18:09 -08:00
|
|
|
namespace Ryujinx.HLE.HOS.Kernel
|
|
|
|
{
|
|
|
|
class KPort : KAutoObject
|
|
|
|
{
|
2018-12-04 16:52:39 -08:00
|
|
|
public KServerPort ServerPort { get; private set; }
|
|
|
|
public KClientPort ClientPort { get; private set; }
|
2018-11-28 14:18:09 -08:00
|
|
|
|
2018-12-04 16:52:39 -08:00
|
|
|
private long NameAddress;
|
|
|
|
private bool IsLight;
|
2018-11-28 14:18:09 -08:00
|
|
|
|
2018-12-04 16:52:39 -08:00
|
|
|
public KPort(Horizon System) : base(System)
|
2018-11-28 14:18:09 -08:00
|
|
|
{
|
2018-12-04 16:52:39 -08:00
|
|
|
ServerPort = new KServerPort(System);
|
|
|
|
ClientPort = new KClientPort(System);
|
2018-11-28 14:18:09 -08:00
|
|
|
}
|
|
|
|
|
2018-12-04 16:52:39 -08:00
|
|
|
public void Initialize(int MaxSessions, bool IsLight, long NameAddress)
|
2018-11-28 14:18:09 -08:00
|
|
|
{
|
|
|
|
ServerPort.Initialize(this);
|
2018-12-04 16:52:39 -08:00
|
|
|
ClientPort.Initialize(this, MaxSessions);
|
2018-11-28 14:18:09 -08:00
|
|
|
|
2018-12-04 16:52:39 -08:00
|
|
|
this.IsLight = IsLight;
|
|
|
|
this.NameAddress = NameAddress;
|
2018-11-28 14:18:09 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|