Core/RemoteAccess: Added support for remote access using email/password.

This commit is contained in:
hondacrx
2021-03-15 14:04:47 -04:00
parent c521848465
commit ecad90c7d4
7 changed files with 364 additions and 2 deletions
@@ -70,6 +70,24 @@ namespace Framework.Networking
}
}
public async void AsyncAccept<T>() where T : ISocket
{
try
{
var socket = await _listener.AcceptSocketAsync();
if (socket != null)
{
T newSocket = (T)Activator.CreateInstance(typeof(T), socket);
newSocket.Accept();
if (!_closed)
AsyncAccept<T>();
}
}
catch (ObjectDisposedException)
{ }
}
public void Close()
{
if (_closed)