From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: Initial SCTP support for the upcoming 1.6.5 release
Date: Mon, 16 Aug 2004 19:02:10 +0200 [thread overview]
Message-ID: <02FA4EE0-EFA6-11D8-B63D-000D932C78D8@lurchi.franken.de> (raw)
In-Reply-To: <ADAC55C9-EDD8-11D8-878A-000D932C78D8@lurchi.franken.de>
Dear all,
I'm trying to build the SCTP support as a loadable module.
Is there any documentation available (or an example) where
I can figure out how I can solve the questions described
below.
I looked in the guile sources, but only found modules defined
in scheme...
Thank you very much for your help.
Best regards
Michael
On Aug 14, 2004, at 11:59 AM, Michael Tuexen wrote:
> Hi Marius,
>
> I tried compiling the tarball you made.
>
> The code uses the static:
> ipv6_net_to_num
> scm_addr_vector
> scm_fill_sockaddr
> from socket.c. For testing I just copied them from socket.c.
>
> Then the stuff compiles but at the end of the make process the
> message
>
> make[1]: *** No rule to make target `sctp.scm', needed by `all-am'.
> Stop.
> make: *** [all] Error 2
>
> shows up.
>
> How do I generate that sctp.scm file?
>
> Another question:
>
> Is there a possibility to include
>
> #ifdef SOCK_SEQPACKET
> scm_c_define ("SOCK_SEQPACKET", SCM_MAKINUM (SOCK_SEQPACKET));
> #endif
>
> /* protocol numbers */
> #ifdef IPPROTO_SCTP
> scm_c_define ("IPPROTO_SCTP", SCM_MAKINUM (IPPROTO_SCTP));
> #endif
>
> #ifdef IPPROTO_TCP
> scm_c_define ("IPPROTO_TCP", SCM_MAKINUM (IPPROTO_TCP));
> #endif
>
> #ifdef IPPROTO_UDP
> scm_c_define ("IPPROTO_UDP", SCM_MAKINUM (IPPROTO_UDP));
> #endif
>
>
> to the socket.c file? These constants should be defined in
> sys/socket.h and netinet/in.h.
>
> They are not additional functions like sctp_* which are
> provided in libsctp. These constants can be used with
> the socket() system call you are providing in the socket.c
> file.
>
> I think your idea with putting the functions libsctp into
> a guile module works and can be extended to full SCTP
> support. The only problem I currently see is is with the
> set/getsockopt call. Here the optvalue can be longer than
> the linger option which is now hardcoded.
> Is it possible to replace a function like getsockopt with
> another function from a loadable module, such that I can
> write a generic get/setsockopt function? Please not that
> the C version does not have a restriction on the optval
> length like the scheme version from socket.c has.
>
>
> Best regards and thank you very much for you support
> Michael
>
> On Aug 13, 2004, at 3:40 PM, Marius Vollmer wrote:
>
>> Michael Tuexen <Michael.Tuexen@lurchi.franken.de> writes:
>>
>>> Please let me know if it is possible to include these changes in
>>> the 1.6.5 release.
>>
>> Hi Michael,
>>
>> we don't want to include this in Guile 1.6.5. The reason is that the
>> SCTP functions are not 'core' functionality and they can take not
>> advantage of being in the core. Also, it would add another dependency
>> to Guile (on libsctp).
>>
>> As long as SCTP needs an external library and is not supported
>> directly by libc, we think it is better to not include it in
>> guile-core.
>>
>> I have turned your patch into a complete package that installs
>> libguile-net-sctp.so and the module (net sctp), you just need to fill
>> in the README, etc. Scheme code can access the new module with
>>
>> (use-modules (net sctp))
>>
>> Unfortunately, I couldn't test it since I don't seem to have sctp
>> support on my box.
>>
>> Here:
>>
>> http://www-dt.e-technik.uni-dortmund.de/~mvo/guile-sctp-0.0.tar.gz
>>
>
>
>
> _______________________________________________
> Guile-devel mailing list
> Guile-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/guile-devel
>
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2004-08-16 17:02 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-10 18:26 Initial SCTP support for the upcoming 1.6.5 release Michael Tuexen
2004-08-11 12:29 ` Michael Tuexen
2004-08-13 13:40 ` Marius Vollmer
2004-08-13 20:27 ` Michael Tuexen
2004-08-24 14:15 ` Marius Vollmer
2004-08-24 17:35 ` Michael Tuexen
2004-09-08 15:03 ` Marius Vollmer
2004-09-08 15:34 ` Michael Tuexen
2004-08-14 9:59 ` Michael Tuexen
2004-08-16 0:40 ` Kevin Ryde
2004-08-16 10:42 ` Michael Tuexen
2004-08-17 23:46 ` Kevin Ryde
2004-08-19 18:34 ` Michael Tuexen
2004-08-20 1:13 ` Kevin Ryde
2004-08-20 7:57 ` Michael Tuexen
2004-08-16 17:02 ` Michael Tuexen [this message]
2004-08-16 18:44 ` Rob Browning
2004-08-20 18:18 ` Michael Tuexen
2004-08-23 0:58 ` Kevin Ryde
2004-08-23 19:54 ` Michael Tuexen
2004-08-24 0:57 ` Kevin Ryde
2004-08-24 11:27 ` Michael Tuexen
2004-08-24 12:46 ` Michael Tuexen
2004-08-24 14:24 ` Marius Vollmer
2004-08-24 18:22 ` Michael Tuexen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=02FA4EE0-EFA6-11D8-B63D-000D932C78D8@lurchi.franken.de \
--to=michael.tuexen@lurchi.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).