After connecting to the server i get the answer from my event handler "Socket[0] event TCPSOCKET_CONNECTED". I then read the answer from the server and get the result "Socket[0] event TCPSOCKET READABLE" and i can print the answer string.
Okay the i send a string to the server and get the result "Socket[0] event TCPSOCKET_WRITEABLE". Here i would say, everything went right so the answer WRITEABLE was correct, the string was sent to the server and i can read the answer from my the server.
When i then try to use the same read routine as before i do not get any answer from the event_handler and the answer is always -1. Can anyone tell me what i am doing wrong?
Thanks.
After connecting to the server i get the answer from my event handler "Socket[0] event TCPSOCKET_CONNECTED". I then read the answer from the server and get the result "Socket[0] event TCPSOCKET READABLE" and i can print the answer string.
Okay the i send a string to the server and get the result "Socket[0] event TCPSOCKET_WRITEABLE". Here i would say, everything went right so the answer WRITEABLE was correct, the string was sent to the server and i can read the answer from my the server.
When i then try to use the same read routine as before i do not get any answer from the event_handler and the answer is always -1. Can anyone tell me what i am doing wrong?
Thanks.