Unix Programming - SO_SNDBUF default value

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > December 2004 > SO_SNDBUF default value





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SO_SNDBUF default value
Kanti

2004-12-18, 2:47 am

Hi,

can anybody tell me default value of socket send buffer, and maximum
value that can be set for this buffer using setsockopt? I want to know
the value of wmem_max.

Kanti
Michael Fuhr

2004-12-18, 2:47 am

kanti_14@rediffmail.com (Kanti) writes:

> can anybody tell me default value of socket send buffer, and maximum
> value that can be set for this buffer using setsockopt? I want to know
> the value of wmem_max.


Default and maximum values vary depending on the OS and local
settings. See your system's documentation for how to query them
(for the default you could use getsockopt()).

My crystal ball tells me you're using Linux. If so, try running
the following commands:

/sbin/sysctl net.core.wmem_default
/sbin/sysctl net.core.wmem_max

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
David Schwartz

2004-12-19, 7:46 am


"Kanti" <kanti_14@rediffmail.com> wrote in message
news:89f9d3cd.0412172117.5b5e74fc@posting.google.com...

> can anybody tell me default value of socket send buffer, and maximum
> value that can be set for this buffer using setsockopt? I want to know
> the value of wmem_max.


For what protocol? And why do you think you need this information?

DS


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com