LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-22-2006, 02:27 PM   #1
saadiaomar
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
header file


HI,
I am writing a program on K developer about networking. It requires the use of SCTP which is a protocol quite similar to TCP. Now my problem is the SCTP must be activated in Linux Fedore Core4. So I need to access the header file netinet/sctp.h so I can activate it.
Please guide me through how I can access this header file.
Saadia
 
Old 03-23-2006, 12:32 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
cant you just "#include <netinet/sctp.h>" ?

Last edited by nadroj; 03-23-2006 at 01:48 PM.
 
Old 03-23-2006, 01:39 PM   #3
kaixa
Member
 
Registered: May 2005
Posts: 36

Rep: Reputation: 15
#include <netinet/sctp.h>

or perhaps

#include "path/to/netinet/sctp.h"

quote...
 
Old 03-23-2006, 03:58 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The thing is that the include is not enough. The kernel must support the protocol. So, just assume you have it and try to use it. You'll see if it works or not. If not, you need to recompile your kernel and add the support.
 
Old 03-23-2006, 04:18 PM   #5
saadiaomar
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
K developer

HI,
Thankx for your help. Even after adding include <netinet/sctp.h> in the program it was not compling. Now I have added sctp in linux i.e activated it by searching some files.
The program is compiling fine now except that when I execute the program in Kdeveloper it say that there is no file or directory in /bin/src and just exit.
Is this a problem with a program? am i not executing it correctly?
I mean to say that I want to capture some data in ethereal but the program is not executing properly. I have checked the program there is nothing wrong with it. Is it a problem with executing it or still a problem activating sctp.
Regards
saadia
 
  


Reply



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
header file problems in g++ crash_override_me Programming 5 10-07-2005 01:28 AM
Problem with c header file alaios Programming 4 09-03-2005 09:06 PM
Create header file for existing .c file hk_michael Programming 5 02-25-2005 05:26 PM
Using same header file in multiple sources george_mercury Programming 2 02-25-2005 01:50 PM
Compiling a header file with gcc Squall Linux - Software 2 04-07-2004 05:16 AM

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

All times are GMT -5. The time now is 03:15 AM.

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