$ 0 0 Please have a look followings link..http://stackoverflow.com/questions/6069218/how-do-java-tcp-ip-sockets-report-transmission-success-or-failure-to-the-applica Thanks abirhasan