3 ms·
I fully expect to be disappointed at some point, but I've always seen the "use fflush()" approach work, on both Linux and Windows. TCP Sockets to a server over
by ArkyBeagle 10y ago
I fully expect to be disappointed at some point, but I've always seen the "use fflush()" approach work, on both Linux and Windows.
TCP Sockets to a server over localhost might also work ( although the flush IOCTL makes no guarantees w/ sockets), then have the server serialize out. One of the nice things about Tcl is that such a server is relatively easy to do. But you may need to mind newlines - don't write until an entire "line" of text has been read.
- pjc50 10y agofflush() over networked drives?
- ArkyBeagle 10y agoGood question - I tended to create a TCP server and use that to write to drives local to the server machine. I never really did a "trust fall" with network mounted drives because the logger is generally not a standard part of the system - it was an add-on.