perror() does not print anything.

How to trace the data? I need your kind help.

when I send the data, the applet hangs.