SCTP Discussions

Text archives Help


Re: Re: [SCTP-Discussion] Example programs of socketapi


Chronological Thread 
  • From: "陈旭晖" <chen_xuhui AT yahoo.com.cn>
  • To: "dreibh AT exp-math.uni-essen.de" <dreibh AT exp-math.uni-essen.de>, "Andreas Jungmaier" <ajung AT exp-math.uni-essen.de>
  • Cc: "discussion" <discussion AT sctp.de>
  • Subject: Re: Re: [SCTP-Discussion] Example programs of socketapi
  • Date: Tue Aug 3 02:57:00 2004
  • List-id: SCTP Discussions <discussion.sctp.de>

Andreas/Thomas,
Thank you for your reply.
I have run the program with the root permissions, or the program
would report "ERROR: You need root permissions to use the SCTP Library!" but
not "ERROR: SCTP is not available!".

Regards
Xuhui



======= 2004-08-03 00:05:58 =======

>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.
>_______________________________________________
>discussion mailing list
>discussion AT sctp.de
>http://www.sctp.de/mailman/listinfo/discussion




Archive powered by MHonArc 2.6.19+.

Top of page