How can I verify that a TCP packet has received an ACK in JAVA? -
after sending tcp data method (mine below)
dataoutputstream outtoserver = new dataoutputstream(clientsocket.getoutputstream()); outtoserver.writebytes(string);
how can verify in java tcp data sent successfully? or there way of reading ack received (from tcpserver) ?
you cannot. operating systems typically not expose applications.
if need know whether data has made other end, need implement acks @ application protocol, not @ transport level tcp concerns with.
Comments
Post a Comment