mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 08:23:07 +02:00
Cleaned up
This commit is contained in:
parent
a9ac3540b9
commit
95366e941a
@ -64,6 +64,9 @@ public struct ConnectionInfo
|
|||||||
/* TODO: Make final/const (find out difference) */
|
/* TODO: Make final/const (find out difference) */
|
||||||
private ulong bulkReadSize;
|
private ulong bulkReadSize;
|
||||||
|
|
||||||
|
/* Client behaviour (TODO: what is sleep(0), like nothing) */
|
||||||
|
private ulong fakeLag = 0;
|
||||||
|
|
||||||
/* TODO: before publishing change this bulk size */
|
/* TODO: before publishing change this bulk size */
|
||||||
private this(Address addrInfo, string nickname, ulong bulkReadSize = 20)
|
private this(Address addrInfo, string nickname, ulong bulkReadSize = 20)
|
||||||
{
|
{
|
||||||
@ -141,6 +144,10 @@ public class Client
|
|||||||
/* 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)? */
|
||||||
|
private string serverName; //TODO: Make use of
|
||||||
|
|
||||||
|
|
||||||
private Socket socket;
|
private Socket socket;
|
||||||
|
|
||||||
/* Message queues (and handlers) */
|
/* Message queues (and handlers) */
|
||||||
@ -245,16 +252,12 @@ public class Client
|
|||||||
IRCEvent ircEvent = cast(IRCEvent)e;
|
IRCEvent ircEvent = cast(IRCEvent)e;
|
||||||
assert(ircEvent); //Should never fail, unless some BOZO regged multiple handles for 1 - wait idk does eventy do that even mmm
|
assert(ircEvent); //Should never fail, unless some BOZO regged multiple handles for 1 - wait idk does eventy do that even mmm
|
||||||
|
|
||||||
logger.log("IRCEvent (id): "~to!(string)(ircEvent.id));
|
logger.log("IRCEvent(message): "~ircEvent.getMessage().toString());
|
||||||
logger.log("IRCEvent "~ircEvent.getMessage().toString());
|
|
||||||
|
|
||||||
|
|
||||||
logger.log(client);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Signal j = new GenericSignal(this);
|
engine.addSignalHandler(new GenericSignal(this));
|
||||||
engine.addSignalHandler(j);
|
|
||||||
|
|
||||||
/* TODO: Add Pong signal handler (make it id 2) */
|
/* TODO: Add Pong signal handler (make it id 2) */
|
||||||
class PongSignal : BaseSignal
|
class PongSignal : BaseSignal
|
||||||
|
Loading…
Reference in New Issue
Block a user