LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   multiple send() and recv() in one TCP connection (https://www.linuxquestions.org/questions/linux-networking-3/multiple-send-and-recv-in-one-tcp-connection-712229/)

ramyasugu 03-17-2009 06:44 AM

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?


All times are GMT -5. The time now is 04:19 AM.