When connection is established successfully server send one OTP to client and received successfully in client. Then i send data to server OTP RECEIVED acknowledgement, it also received in server. After OTP RECEIVED acknowledgement server send welcome msg to client. I cant get the welcome message. if i remove the (exit) soket_write is not working i can't send data to server. if i put exit data send to server successfully and socket is closed. What can i do for this type of issue.
I don't know what mistake i done.?
I cant share my java server code. i create php server and client.
Here i attach the files.
Server - https://pastebin.com/embed_iframe/L30uKQAr
Client - https://pastebin.com/embed_iframe/Wfjzcebb