mirror of https://github.com/deavminet/libdnet.git
Add queues to manager.
This commit is contained in:
parent
d110c95d12
commit
4c4d4daab6
|
@ -43,11 +43,15 @@ public final class DClient
|
|||
/* Initialize the manager */
|
||||
manager = new Manager(socket);
|
||||
|
||||
/* Create a queue for normal traffic (request-reply) */
|
||||
/* Create a queue for normal traffic (request-reply on tag: 0) */
|
||||
Queue reqRepQueue = new Queue(0);
|
||||
|
||||
/* Create a queue for notifications (replies-only) */
|
||||
/* Create a queue for notifications (replies-only on tag: 1) */
|
||||
Queue notificationQueue = new Queue(1);
|
||||
|
||||
/* Add these queues to the tracker */
|
||||
manager.addQueue(reqRepQueue);
|
||||
manager.addQueue(notificationQueue);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue