sockets question again


 
Thread Tools Search this Thread
Top Forums Programming sockets question again
# 1  
Old 11-19-2004
sockets question again

I apologize if this seems like a repeat post, but I never got a clear answer (this isn't a criticism, it's possible I'm not being clear enough)....I'm attempting to enlarge the socket buffers for a udg socket, but it seems that no matter how large I attempt to set the buffer with

setsockopt( )

I only am able to enlarge to a size of 262142 (according to getsockopt( ) ). What governs the amount of size you can allocate to a socket buffer, and how can I change it?
# 2  
Old 11-19-2004
If it's possible, it will be a kernel tunable parameter. For example, see this.
# 3  
Old 11-19-2004
Since "sysctl -a | grep udp_max_buf" didn't show anything, should I assume that this is not a tuneable parameter?
# 4  
Old 11-19-2004
No, you should carefully read your docs for whatever os you are using. The names of kernel tunables are not controlled by a standard.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Any example about sockets in C++?

Hi, i am student, think learning about c++, someone has a example the how establish a conection with sockets :b::b: (1 Reply)
Discussion started by: mmartinez
1 Replies

2. IP Networking

Basic question about sockets

Hi - I've written an app that, among other things, accepts a telnet connection (made via the "telnet" command from a terminal) and converses with it. I'd like to make this work so that only one client at a time can connect. Currently, when a second user tries to connect, the incoming messages... (2 Replies)
Discussion started by: mzimmers
2 Replies

3. Red Hat

Sockets

hai guys, I'm doing a project in which one server communicates with several clients. How can i do it when i have different port numbers???:confused: (0 Replies)
Discussion started by: rajeshb6
0 Replies

4. Programming

Help with sockets in C

if i have a server which wants to connect to exactly 5 clients, does that mean i need 5 socket file descriptors and use listen(socket_fd,1); for each one or just do listen(socket_fd,5) also whats the second parameter number mean? what happens if i put 0 there? also if i am connected... (28 Replies)
Discussion started by: omega666
28 Replies

5. Programming

Sockets select() question

Hello everyone. I have a question regarding select() function. Imagine i had passed a fd_set* as the readfds parameter. Can i add some fd to the fd_set, using FD_SET, while the thread is blocked in the select call(obviously from another thread), and will that select call monitor those fd, even if... (2 Replies)
Discussion started by: adadon
2 Replies

6. Programming

need help with sockets

anyone and teach me how to save standard output to a file in a client/server socket. I know how to read them to the screen but i'm not quite sure how to save them to a file. my read to screen file code: memset(line, 0x0, LINE_ARRAY_SIZE); while (recv(connectSocket, line, MAX_MSG, 0) >... (1 Reply)
Discussion started by: crunchyuser
1 Replies

7. Solaris

Sockets in use

Is there a way to see what sockets are in use? The developers here are getting some defunct processes and they would like to get a socket list. This is on a Solaris 8 machine. Thanks! (1 Reply)
Discussion started by: kjbaumann
1 Replies

8. Programming

sockets

Hai, How cani declare socket and collect the data in a string varialbe. Since i am new to this i am asking this. Can we connect multiple port. Thank you. (6 Replies)
Discussion started by: arunkumar_mca
6 Replies

9. Programming

sockets question

I'm new to sockets programming and I have a few questions: Is the a maximum limit that you can use for the send and receive buffers via a call to setsockopt()? Does it differ on different OSs? If it does, how do I find out the max limit? What is the advantage to setting the buffers to be... (1 Reply)
Discussion started by: jalburger
1 Replies

10. Programming

Sockets!?!?!?!?!?!

I am looking for a way to have a program listen on a port (example: 8000) for communication I will be sending via that port to it(Linux Kernel machine). Once it recieves an appropiate command I need it to run a .bat file in linux. I know what I need to do but I am running into a few problems:... (8 Replies)
Discussion started by: bigB8210
8 Replies
Login or Register to Ask a Question