mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 13:22:52 +02:00
Client
- In the `loop()` (the read loop) if built in `unittest` mode then log the read count/status and the current data after the PEEK'd read
This commit is contained in:
parent
cf23797f99
commit
2b5da1eb9a
@ -1012,9 +1012,14 @@ public class Client : Thread
|
|||||||
/* Receieve at most 512 bytes (as per RFC) */
|
/* Receieve at most 512 bytes (as per RFC) */
|
||||||
ptrdiff_t bytesRead = socket.receive(currentData, SocketFlags.PEEK);
|
ptrdiff_t bytesRead = socket.receive(currentData, SocketFlags.PEEK);
|
||||||
|
|
||||||
|
version(unittest)
|
||||||
|
{
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
// writeln(bytesRead);
|
writeln("(peek) bytesRead: '", bytesRead, "' (status var or count)");
|
||||||
// writeln(currentData);
|
writeln("(peek) currentData: '", currentData, "'");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* FIXME: CHECK BYTES READ FOR SOCKET ERRORS! */
|
/* FIXME: CHECK BYTES READ FOR SOCKET ERRORS! */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user