Remember to flush!
Last night I was doing some network/socket programming. Just for the fun of it. This was done as I always do (it’s not the first time I’m doing this kind of programming) by building up the socket connection and running it through the stream handlers that the programming language library (Java/C#) provides.
Last night I found – as I always do the first time around – that my communication wasn’t coming around to the server. I tried, I tried some more, I failed…. And went to bed upset.
I woke up this morning – went to do my morning business and BAM it hit me! Flush!! Oh my… ! I booted the computer, added a “stream.Flush()” and we where off! It is certainly NOT the first time I’ve missed this part! I blame the high level stream handlers – did I tell them to buffer? No!
Anyway – remember to flush people!
Leave a Reply
No Comment
Be the first to respond!