1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 09:43:37 +02:00

Later work on multiple sessions

This commit is contained in:
Tristan B. Kildaire 2021-01-28 11:14:37 +02:00
parent c7a4cfbadd
commit a00acaa35e

View File

@ -844,11 +844,28 @@ public class DConnection : Thread
*/ */
private bool authenticate(string username, string password) private bool authenticate(string username, string password)
{ {
/* TODO: Check username and password */
/* TODO: Multi-client/session support */
/* TODO: Implement me */ /* TODO: Implement me */
this.username = username; this.username = username;
/* TODO (Sessions): Generate a session ID for this connection */
return true; return true;
} }
private uint generateSessionID()
{
/* TODO: Basically find a number that isn't taken by matching usernames */
}
private uint getMySessionID()
{
/* TODO: */
}
/** /**
* Get member count * Get member count
* *