LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2006, 02:35 PM   #1
astropirhana
LQ Newbie
 
Registered: Jul 2006
Distribution: Debian 3.X
Posts: 14

Rep: Reputation: 0
disable the nagle algorithm using setsockopt(),


I am trying to disable the nagle algorithm using setsockopt(), but I am getting this error.



Does that mean that it is already disabled? What are the defaults?


gcc -g -c bridgsvr.c

bridgsvr.c: In function `socket_client':

bridgsvr.c:653: error: `TCP_NODELAY' undeclared (first use in this function)

bridgsvr.c:653: error: (Each undeclared identifier is reported only once

bridgsvr.c:653: error: for each function it appears in.)

FWIW,

Astro
 
Old 11-02-2006, 03:25 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have
#include <netinet/tcp.h>
? In the current state, the program does not compile.
 
Old 11-02-2006, 03:46 PM   #3
astropirhana
LQ Newbie
 
Registered: Jul 2006
Distribution: Debian 3.X
Posts: 14

Original Poster
Rep: Reputation: 0
thanks Mara

Yes thats correct. Thank you!
I include tcp.h and it works.
Astro

Last edited by astropirhana; 11-02-2006 at 03:57 PM.
 
  


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
setsockopt: SO_RCVTIMEO Ephracis Programming 2 03-18-2013 02:43 AM
setsockopt() in kernel? hegdeshashi Linux - Networking 0 01-12-2006 12:17 AM
setsockopt Mercurius Programming 6 12-24-2005 07:16 AM
setsockopt with level IPPROTO_UDP longp Linux - Networking 0 07-12-2005 10:10 AM
NAGLE Algorithm saintt Linux - Networking 1 12-03-2001 07:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:54 PM.

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
Open Source Consulting | Domain Registration