meso: Implement ConnectLight

This commit is contained in:
TuxSH
2018-11-13 01:14:55 +01:00
committed by Michael Scire
parent efe7325af3
commit ad879ca327
12 changed files with 73 additions and 18 deletions

View File

@@ -21,13 +21,13 @@ Result KPort::Initialize(int maxSessions, bool isLight)
return ResultSuccess();
}
Result KPort::AddServerSession(KLightServerSession &lightServerSession)
Result KPort::AddLightServerSession(KLightServerSession &lightServerSession)
{
KScopedCriticalSection critsec{};
if (isClientAlive || isServerAlive) {
return ResultKernelConnectionRefused();
} else {
return server.AddServerSession(lightServerSession);
return server.AddLightServerSession(lightServerSession);
}
}