Socket Programming: setsockopt: Protocol not available
Hi all,
I'm trying to connect a Linux box (running RH7.2) to a UNIX system via a C program I've written. The issue I'm having is that once the code gets to a setsockopt( ) system call, it returns with the error "Protocol not available". I've tried to do Google searches on the problem but all I get back are IP masquing issues which is not what I'm doing here. The setsockopt calls are in the 2nd code segment. I've modified the code a little so that it's easier to read here on the board. Pardon any stupid mistakes I've done. Here's what I have so far: Code:
int HDC_init (unsigned char** HDC_allocptr) Code:
int clientSocket[MAX_PORTS]; |
If it says that the protocol is not avaliable it could mean that that specific protocol is not installed on that machine. Have you checked to see that it is?
|
Yah.....I'm guessing that there's a good possibility that it may not be "installed" on the system. Again, I'm using Red Hat 7.2. Is there a possibility that I have to recompile the kernel? I'd really like to avoid that if at all possible. Otherwise, is there a small code segment out there that I can run to give me access? I'm really shooting in the dark here since I'm not very good with socket programming. Any help would be great. Thanks so much.
|
what is MAX_TCP_SIZE set to?
|
It's the following:
Code:
#define MAX_TCP_SIZE = 45*1024 |
hmm that's pretty odd. that value is certainly reasonable. i donno what to tell you. when run this command do u get any results:
sysctl -a | grep wmem_max that should display the sndbuf max size. i'm wondering if maybe rh7 doesn't support this? |
All times are GMT -5. The time now is 06:54 AM. |