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)
{
/* Get the tag */
long tag = message.tag;
/* Get the command byte */
byte commandByte = message.data[0];
@ -106,7 +109,17 @@ public class DConnection : Thread
/* TODO: Handle this case */
else
{
/* TODO: Check plugins */
bool isPlugin = false;
if(isPlugin)
{
}
else
{
}
}
}

View File

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