mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 01:43:50 +02:00
Client
- Added TODOs Exceptions - Added TODO
This commit is contained in:
parent
d75d5407fd
commit
b5e1b4065f
@ -105,6 +105,12 @@ public class Client : Thread
|
|||||||
{
|
{
|
||||||
super(&loop);
|
super(&loop);
|
||||||
this.connInfo = connInfo;
|
this.connInfo = connInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setups the receiver and sender queue managers
|
||||||
|
*/
|
||||||
|
this.receiver = new ReceiverThread(this);
|
||||||
|
this.sender = new SenderThread(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
~this()
|
~this()
|
||||||
@ -659,6 +665,7 @@ public class Client : Thread
|
|||||||
/* Lock queue */
|
/* Lock queue */
|
||||||
recvQueueLock.lock();
|
recvQueueLock.lock();
|
||||||
|
|
||||||
|
// TODO: Update the below to call `receiver.newRecv()`
|
||||||
/* Add to queue */
|
/* Add to queue */
|
||||||
recvQueue.insertAfter(recvQueue[], message);
|
recvQueue.insertAfter(recvQueue[], message);
|
||||||
|
|
||||||
@ -864,6 +871,7 @@ public class Client : Thread
|
|||||||
/* Lock queue */
|
/* Lock queue */
|
||||||
sendQueueLock.lock();
|
sendQueueLock.lock();
|
||||||
|
|
||||||
|
// TODO: Update the below to call `sender.newSend()`
|
||||||
/* Add to queue */
|
/* Add to queue */
|
||||||
sendQueue.insertAfter(sendQueue[], encodedMessage);
|
sendQueue.insertAfter(sendQueue[], encodedMessage);
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ import std.conv : to;
|
|||||||
|
|
||||||
public class BirchwoodException : Exception
|
public class BirchwoodException : Exception
|
||||||
{
|
{
|
||||||
|
// TODO: Move outside one level
|
||||||
public enum ErrorType
|
public enum ErrorType
|
||||||
{
|
{
|
||||||
INVALID_CONN_INFO,
|
INVALID_CONN_INFO,
|
||||||
|
Loading…
Reference in New Issue
Block a user