1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 13:22:52 +02:00
- Added some missing comments
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-11 15:11:32 +02:00
parent 269aaf0018
commit 97220b7f99

View File

@ -28,21 +28,28 @@ __gshared static this()
// ... which logs outputs for the `onX()` handler functions // ... which logs outputs for the `onX()` handler functions
public class Client : Thread public class Client : Thread
{ {
/* Connection information */ /**
* Connection information
*/
private ConnectionInfo connInfo; private ConnectionInfo connInfo;
/* TODO: We should learn some info in here (or do we put it in connInfo)? */ /* TODO: We should learn some info in here (or do we put it in connInfo)? */
private string serverName; //TODO: Make use of private string serverName; //TODO: Make use of
/**
* Underlying connection to the server
*/
package Socket socket; package Socket socket;
/**
* Receive queue and send queue managers
*/
private ReceiverThread receiver; private ReceiverThread receiver;
private SenderThread sender; private SenderThread sender;
/**
/* Event engine */ * Eventy event engine
*/
package Engine engine; package Engine engine;
package bool running = false; package bool running = false;
@ -578,6 +585,10 @@ public class Client : Thread
// * they have ensured a waiting-pipe pair for // * they have ensured a waiting-pipe pair for
// * libsnooze exists) // * libsnooze exists)
// */ // */
/**
* Start the receive queue and send queue managers
*/
this.receiver.start(); this.receiver.start();
this.sender.start(); this.sender.start();
// while(!receiver.isReady() || !sender.isReady()) {} // while(!receiver.isReady() || !sender.isReady()) {}