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

Save the tag for future use when sending replies

This commit is contained in:
Tristan 🅱. Kildaire 2020-09-23 11:20:09 +02:00
parent e36103c153
commit e10a7d5b3e
2 changed files with 17 additions and 2 deletions

View File

@ -85,6 +85,9 @@ public class DConnection : Thread
*/ */
private void process(DataMessage message) private void process(DataMessage message)
{ {
/* Get the tag */
long tag = message.tag;
/* Get the command byte */ /* Get the command byte */
byte commandByte = message.data[0]; byte commandByte = message.data[0];
@ -106,7 +109,17 @@ public class DConnection : Thread
/* TODO: Handle this case */ /* TODO: Handle this case */
else else
{ {
/* TODO: Check plugins */
bool isPlugin = false;
if(isPlugin)
{
}
else
{
}
} }
} }

View File

@ -23,7 +23,9 @@ public class DServer : Thread
private Address sockAddress; private Address sockAddress;
/* Connection queue */ /**
* Connection queue
*/
private DConnection[] connectionQueue; private DConnection[] connectionQueue;
this(Address sockAddress) this(Address sockAddress)