tcp ip - Write bytes to a stram -what happen to the data? -


if application write bytes port , , no 1 reads data port , happen data ? suppose 1 application write char message port every minutes (the message has end tag) , , application should read port down , messages lost ?

if port closed (over tcp/ip or udp/ip network), packets dropped, , data lost. if it's open, receiving application never reads in, sit in buffer until app terminates, @ point lost. local ipc, say, pipe, data sits around in read buffer until read end of pipe closed, @ point lost.

tl;dr: it's lost.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -