Networking Forums

Networking Forums > Computer Networking > Linux Networking > setsockopt(...SO_KEEPALIVE,...) returns ENOPROTOOPT

Reply
Thread Tools Display Modes

setsockopt(...SO_KEEPALIVE,...) returns ENOPROTOOPT

 
 
Jarek
Guest
Posts: n/a

 
      02-22-2005, 10:11 AM
Whats wrong in this code:

tCPClient->tcpSocket = socket( AF_INET, SOCK_STREAM, 0 );
optval = 1;
rc = setsockopt( tCPClient->tcpSocket, SOL_PACKET, SO_KEEPALIVE,
&optval, sizeof(optval) );

----------------------

After this rc has value 92 (ENOPROTOOPT).

According to source code of setsockopt this should never happend.

Any ideas ?

Jarek
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
when send() function returns? Sean Linux Networking 8 06-22-2006 09:17 PM
Ping returns wrong IP Chris Windows Networking 5 02-21-2006 03:14 PM
setsockopt and socket's I/O mode Rajat Linux Networking 5 03-01-2005 05:51 PM
Can't ftp from Linux to windows-server - setsockopt B H Linux Networking 0 11-24-2004 01:59 PM
ppp returns hvb Windows Networking 5 11-26-2003 12:20 AM



1 2 3 4 5 6 7 8 9 10 11