LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-29-2017, 08:25 AM   #1
barz_83_LQ
LQ Newbie
 
Registered: Apr 2017
Posts: 17

Rep: Reputation: Disabled
Modify UDP receive socket buffer size for an open socket (not at system level, but socket level)


0
down vote
favorite


Am working on non blocking udp communication between 2 processes.
I could not understand how to modify manually even as super user, the recv socket buffer size through command line instead of using setsockopt() in program.

As a socket is a per process structure, I want to know how can this be done for the specific socket instead of using

sysctl -w net.core.rmem_default=8192 (or)
/proc/sys/net/core/rmem_default

which indicate default values for a socket to be opened at system level but not for an already open socket.

Thanks in advance..
 
Old 11-27-2017, 04:10 AM   #2
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 58
Blog Entries: 2

Rep: Reputation: 27
Was the reply you received here adequate?
Modify it system-wide from the command line. [or] Modify it per socket from within the process. [only]
 
Old 11-27-2017, 08:56 PM   #3
barz_83_LQ
LQ Newbie
 
Registered: Apr 2017
Posts: 17

Original Poster
Rep: Reputation: Disabled
Not really. If the response that says, it is not possible is correct, the reason behind designing so/ design decisions would be appreciable.
 
  


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
Unable to receive UDP broadcast from a UDP socket bound to an interface Sreeram B S Linux - Networking 5 05-03-2012 03:44 PM
How do I set a socket's receive buffer size from Perl? kwopublic Programming 1 01-23-2006 07:38 PM
fseek on a socket descriptor to discard socket buffer? Thinking Programming 1 12-06-2005 10:15 PM
Unable to receive data in an udp socket stephenwalter Programming 8 11-25-2005 12:20 AM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 06:43 AM

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

All times are GMT -5. The time now is 09:00 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration