LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   header file (https://www.linuxquestions.org/questions/programming-9/header-file-427385/)

saadiaomar 03-22-2006 02:27 PM

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

nadroj 03-23-2006 12:32 PM

cant you just "#include <netinet/sctp.h>" ?

kaixa 03-23-2006 01:39 PM

#include <netinet/sctp.h>

or perhaps

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

quote...

Mara 03-23-2006 03:58 PM

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.

saadiaomar 03-23-2006 04:18 PM

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


All times are GMT -5. The time now is 11:08 PM.