mirror of https://github.com/deavminet/libdnet.git
Removed old code
This commit is contained in:
parent
e8def91645
commit
30ea770c37
|
@ -17,18 +17,13 @@ public final class DClient
|
||||||
*/
|
*/
|
||||||
private Manager manager;
|
private Manager manager;
|
||||||
private Socket socket;
|
private Socket socket;
|
||||||
|
|
||||||
/* Create a queue for normal traffic (request-reply on tag: 0) */
|
/* Create a queue for normal traffic (request-reply on tag: 0) */
|
||||||
private Queue reqRepQueue;
|
private Queue reqRepQueue;
|
||||||
|
|
||||||
/* Create a queue for notifications (replies-only on tag: 1) */
|
/* Create a queue for notifications (replies-only on tag: 1) */
|
||||||
private Queue notificationQueue;
|
private Queue notificationQueue;
|
||||||
|
|
||||||
|
|
||||||
/* TODO: Tristsnable doesn't, unlike my java version, let youn really reuse tags */
|
|
||||||
/* TODO: Reason is after use they do not get deleted, only later by garbage collector */
|
|
||||||
/* TODO: To prevent weird stuff from possibly going down, we use unique ones each time */
|
|
||||||
private long i = 20;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new DClient and connects
|
* Constructs a new DClient and connects
|
||||||
* it to the given endpoint Address
|
* it to the given endpoint Address
|
||||||
|
@ -47,6 +42,8 @@ public final class DClient
|
||||||
initTristanable(socket);
|
initTristanable(socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: Create a new queue actually for each command (this is for performance) - as we will have server spawn workers */
|
||||||
|
|
||||||
private void initTristanable(Socket socket)
|
private void initTristanable(Socket socket)
|
||||||
{
|
{
|
||||||
/* Initialize the manager */
|
/* Initialize the manager */
|
||||||
|
@ -449,9 +446,6 @@ public final class DClient
|
||||||
/* TODO: Error handling */
|
/* TODO: Error handling */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set next available tag */
|
|
||||||
i++;
|
|
||||||
|
|
||||||
return members;
|
return members;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -505,9 +499,6 @@ public final class DClient
|
||||||
/* TODO: Error handling */
|
/* TODO: Error handling */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set next available tag */
|
|
||||||
i++;
|
|
||||||
|
|
||||||
return memberCount;
|
return memberCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -537,9 +528,6 @@ public final class DClient
|
||||||
/* TODO: Error handling */
|
/* TODO: Error handling */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set next available tag */
|
|
||||||
i++;
|
|
||||||
|
|
||||||
return motd;
|
return motd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue