LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-27-2004, 01:53 PM   #1
jwstric2
Member
 
Registered: Jan 2004
Posts: 105

Rep: Reputation: 15
sendmsg max size??


From what I know, I thought the applications data it brokens into reasonable size msg and the lower layer. So if I wanted to send a data of 512KB this would be broken into 8 udp packets (if the network can support the maximum 64kb packets).

I have tried changing the socket's snd buffer to upwards of 2MB with setsockopt but still it refuses to send the messages. I need it to be udp and hopefuly stil use sendmsg because of its scatter, gather techniques. I am only using at most 2 args so I am not creating more than IOV_MAX args. Error is shown below as printed from perror.

_pSend (2): Message too long

The only other option I can think of would be to set the buffer to the max data size and recursively send the data. I should also note that I am dealing with asynchronous sockets.


OS INFO:
Fedora 1.
 
  


Reply



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
max hard drive size Whiskers Linux - Hardware 7 04-29-2005 02:06 PM
Max cluster size Pauli Slackware 0 03-20-2005 04:41 PM
max process size textomat Linux - General 1 11-06-2004 01:10 PM
increasing max file size arokh AIX 4 08-31-2004 03:59 AM
max size file system f.montel Linux - Hardware 0 05-27-2004 04:53 AM

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

All times are GMT -5. The time now is 12:36 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