mirror of
https://github.com/deavmi/birchwood
synced 2024-09-19 23:43:05 +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);
|
||||
this.connInfo = connInfo;
|
||||
|
||||
/**
|
||||
* Setups the receiver and sender queue managers
|
||||
*/
|
||||
this.receiver = new ReceiverThread(this);
|
||||
this.sender = new SenderThread(this);
|
||||
}
|
||||
|
||||
~this()
|
||||
@ -659,6 +665,7 @@ public class Client : Thread
|
||||
/* Lock queue */
|
||||
recvQueueLock.lock();
|
||||
|
||||
// TODO: Update the below to call `receiver.newRecv()`
|
||||
/* Add to queue */
|
||||
recvQueue.insertAfter(recvQueue[], message);
|
||||
|
||||
@ -864,6 +871,7 @@ public class Client : Thread
|
||||
/* Lock queue */
|
||||
sendQueueLock.lock();
|
||||
|
||||
// TODO: Update the below to call `sender.newSend()`
|
||||
/* Add to queue */
|
||||
sendQueue.insertAfter(sendQueue[], encodedMessage);
|
||||
|
||||
|
@ -4,6 +4,7 @@ import std.conv : to;
|
||||
|
||||
public class BirchwoodException : Exception
|
||||
{
|
||||
// TODO: Move outside one level
|
||||
public enum ErrorType
|
||||
{
|
||||
INVALID_CONN_INFO,
|
||||
|
Loading…
Reference in New Issue
Block a user