2018-12-18 00:33:36 -05:00
|
|
|
using Ryujinx.HLE.HOS.Kernel.Common;
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.Ipc
|
2018-11-28 17:18:09 -05:00
|
|
|
{
|
|
|
|
class KPort : KAutoObject
|
|
|
|
{
|
2018-12-04 19:52:39 -05:00
|
|
|
public KServerPort ServerPort { get; private set; }
|
|
|
|
public KClientPort ClientPort { get; private set; }
|
2018-11-28 17:18:09 -05:00
|
|
|
|
2018-12-06 06:16:24 -05:00
|
|
|
private long _nameAddress;
|
|
|
|
private bool _isLight;
|
2018-11-28 17:18:09 -05:00
|
|
|
|
2018-12-06 06:16:24 -05:00
|
|
|
public KPort(Horizon system) : base(system)
|
2018-11-28 17:18:09 -05:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
ServerPort = new KServerPort(system);
|
|
|
|
ClientPort = new KClientPort(system);
|
2018-11-28 17:18:09 -05:00
|
|
|
}
|
|
|
|
|
2018-12-06 06:16:24 -05:00
|
|
|
public void Initialize(int maxSessions, bool isLight, long nameAddress)
|
2018-11-28 17:18:09 -05:00
|
|
|
{
|
|
|
|
ServerPort.Initialize(this);
|
2018-12-06 06:16:24 -05:00
|
|
|
ClientPort.Initialize(this, maxSessions);
|
2018-11-28 17:18:09 -05:00
|
|
|
|
2018-12-06 06:16:24 -05:00
|
|
|
_isLight = isLight;
|
|
|
|
_nameAddress = nameAddress;
|
2018-11-28 17:18:09 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|