multiple send() and recv() in one TCP connection
I have a TCP server and client.Now that I want to send packetised data from the client and receive the data in server.Then in the server I have to resend the same data back to client.
client
{
send(data)
recv(data)
}
server
{
recv(data)
send(data)
}
The server receives the data but what it is sending back to client is wrong data.
Now i want to know whether its possible to send and receive continuously
between server and client?
|