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:
parent
e36103c153
commit
e10a7d5b3e
@ -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
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user