Networking Forums

Networking Forums > Computer Networking > Linux Networking > A rather basic question relating recv()

Reply
Thread Tools Display Modes

A rather basic question relating recv()

 
 
LaBird
Guest
Posts: n/a

 
      07-23-2004, 10:20 AM
Dear all,

I am implementing the communication part of a parallel
application, using Linux sockets with TCP/IP. I found
that each time in the recv(), I can only get at most 1448
bytes, despite I specify a larger number of bytes to get
(3rd argument in recv()), and the sender has sent more
bytes than that. I have to call multiple recv() to get the
whole message.

How can I alter this behavior? Is it using setsockopt()?
Thanks!

--
LaBird (Benny).


 
Reply With Quote
 
 
 
 
Bernhard Kastner
Guest
Posts: n/a

 
      07-23-2004, 01:00 PM
LaBird wrote:

> Dear all,
>
> I am implementing the communication part of a parallel
> application, using Linux sockets with TCP/IP. I found
> that each time in the recv(), I can only get at most 1448
> bytes, despite I specify a larger number of bytes to get
> (3rd argument in recv()), and the sender has sent more
> bytes than that. I have to call multiple recv() to get the
> whole message.
>
> How can I alter this behavior? Is it using setsockopt()?
> Thanks!
>


you forgot the IP-Header and all the other overhead that is includes and
reduces the actually transferred data to 1448 Byte

--
---
http://www.alf.at.tc
Austrian Linux Forum
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very basic FTP question Nicola Attico Linux Networking 13 07-14-2007 03:19 PM
Basic question April Wireless Internet 10 03-19-2007 01:22 PM
Very Basic Question vonda Wireless Internet 6 12-24-2006 04:59 AM
very basic question geepeetee Wireless Networks 0 10-10-2004 03:32 PM
recv()==0 question Bonny Gijzen Linux Networking 5 06-17-2004 07:41 PM



1 2 3 4 5 6 7 8 9 10 11