protected override void OnPacketReceived(StreamPacket packet) { logger.LogInfo("Packet 0x{0:X16} has been received from client {1}", packet.ID, Socket.EndPoint); }
private void Client_OnPingSent(object sender, PingSentEventArgs <TCPClient <StreamPacket>, StreamPacket> e) { logger.LogInfo("Ping request has been sent at {0}", e.SentAt); }
private void Server_OnServerOpened(object sender, ServerOpenedEventArgs <TCPServer <StreamPacket>, TCPClient <StreamPacket>, StreamPacket> e) { logger.LogInfo("ChatServer opened at {0}", e.Time); }
void ISingleton.Created() { logger = LoggerFactory.GetLogger <ComponentFactory>(); logger.LogInfo("ComponentFactory has been created!"); }
protected override void OnServerOpened() { logger.LogInfo("ChatServer opened"); }