Skip to content

Commit ed227f6

Browse files
author
LoneWandererProductions
committed
add some more
1 parent 5f246d4 commit ed227f6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Communication/SimpleLogServer.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* FILE: SimpleLogServer.cs
55
* PURPOSE: Facade to simplify usage of LogCollectorServer for users who just want to provide a simple callback for log processing without needing to implement the ILogProcessor interface themselves.
66
* PROGRAMMER: Peter Geinitz (Wayfarer)
7-
* * TO DO:
8-
* 1. [Config] Expose the 'Read Timeout' (currently hardcoded to 5s) as a constructor parameter or options object.
9-
* 2. [Events] Add an 'OnError' Action<Exception> callback so users can handle server errors instead of just Console.WriteLine.
10-
* 3. [Events] Add 'OnClientConnected' and 'OnClientDisconnected' callbacks for better monitoring.
11-
* 4. [Security] Add support for SslStream (TLS) to allow secure log transmission.
12-
* 5. [Network] Explicitly support IPv6 (currently defaults to IPv4/Any).
7+
* * TODO ARCHITECTURE:
8+
* 1. [Protocol] Implement Length-Prefixing (Header + Body) to support multi-line logs and binary data, replacing the fragile NewLine delimiter.
9+
* 2. [Performance] decouple Network Reads from Processing using a Producer/Consumer pattern (System.Threading.Channels) to prevent slow DB writes from blocking network sockets.
10+
* 3. [Security] Add TLS support (SslStream) via X509Certificate2 to encrypt log traffic.
11+
* 4. [Reliability] Add Application-Level Heartbeats (Ping/Pong) to detect and prune "zombie" connections that the TCP stack hasn't dropped yet.
12+
* 5. [Observability] Expose internal metrics (e.g., ConnectedClients, LogsPerSecond, DroppedPackets) for external monitoring.
1313
*/
1414

1515
using System;

0 commit comments

Comments
 (0)