java - Detecting stream data corruption -
i have server sending/receiving data multiple clients, each attached separate server thread. data being sent via datainputstreams , dataoutputstreams , consists entirely of strings. send int-based signals indicate client behavior should change, data sent in stringized format.
from understand currently, tcp automatically resend dropped packets, want able handle data corruption. if call, say, dataoutputstream.writeutf() send message client server, if checksum detection done behind scenes make sure full message transmitted properly? , how detect problems?
would, say, catching ioexception in server code datainputstream , manually asking client resend message (which should therefore id-stamped somehow) proper way of handling situation?
Comments
Post a Comment