LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2009, 06:44 AM   #1
ramyasugu
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
send() recv() used multiple times fail Jane2008 Programming 34 03-13-2009 04:25 PM
MPI Send and Recv mkrems Programming 1 05-25-2008 12:05 PM
recv() and send() in socket lrios Programming 5 04-23-2008 11:32 AM
problems in multithreaded send()/recv() using tcp socket arslanali Programming 2 05-26-2007 09:00 AM
Red Hat 9 - How do I change TCP send/recv windows? oswald21 Linux - Networking 1 07-16-2003 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration