SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] Example programs of socketapi


Chronological Thread 
  • From: dreibh AT exp-math.uni-essen.de
  • To: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
  • Cc: ³ÂÐñêÍ <chen_xuhui AT yahoo.com.cn>, discussion <discussion AT sctp.de>
  • Subject: Re: [SCTP-Discussion] Example programs of socketapi
  • Date: Mon Aug 2 18:07:03 2004
  • List-id: SCTP Discussions <discussion.sctp.de>

Zitat von Andreas Jungmaier
<ajung AT exp-math.uni-essen.de>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am Sonntag, 1. August 2004 16:15 schrieb ³ÂÐñêÍ:
> >Hi,
> > I encounter the difficulty when I run the example programs of
> > socketapi lib in directory cppsocket_programs. All the programs echo
> "ERROR:
> > SCTP is not available!" and exit. And the test program of sctplib works
> > well.
> >
> > The correlative information is:
> > SCTPLib : 1.0.1
> > SocketApi: 1.3.1
> > OS: Solaris2.9(sparc)
> > C & C++ compiler: gcc,g++ (Version 3.4.1)
>
> That may be a problem of some operating system related functions.
>
> What value does the call to
>
> if(getuid() != 0) {

sctplib uses a raw socket, which requires root permissions. This call checks
if
you are root (user ID: zero). If you are not root, sctplib cannot work,
therefor e socket API will print an error message.

The next version of the sctplib will use a daemon, which runs under root
permissions. Then, other programs access the SCTP functionality via a Unix
socket, making being root unnecessary. The new versions of sctplib and socket
API will be released within the next few weeks.


Best regards

Thomas Dreibholz


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Archive powered by MHonArc 2.6.19+.

Top of page