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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -