I am writing and reading from socket opening a telnet port of remote machine. Fisrt i write the command and able the read and store data in a variable. But second time when i write data it will write successfully but at reading it gives an error "socket_recv() failed; reason: Success" and not result show.
I also used socket_recv and socket_read but same error on both.
Please help me in this regard. I want to write and read many commands one after another. Means first we write command and get result , then we write 2nd command and read it. and so on.