K
korcs
Hi,
I have an interesting issue with socket programming.
I would like to send String based information via Sockets.
As it could happen, that a part of the information gets lost on its
way to the client, I would like to send before all such packages the
size of the package as a "short" value (or something equal, but not
string because you can never be sure that your string completely
arrived ).
Does anybody know what is an elegant solution for this problem?
I send the strings using:
PrintWriter out = new PrintWriter(client.getOutputStream(), true);
out.println("test");
Thanks,
korcs
I have an interesting issue with socket programming.
I would like to send String based information via Sockets.
As it could happen, that a part of the information gets lost on its
way to the client, I would like to send before all such packages the
size of the package as a "short" value (or something equal, but not
string because you can never be sure that your string completely
arrived ).
Does anybody know what is an elegant solution for this problem?
I send the strings using:
PrintWriter out = new PrintWriter(client.getOutputStream(), true);
out.println("test");
Thanks,
korcs