unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Cc: guile-devel@gnu.org, Rob Browning <rlb@defaultvalue.org>
Subject: Re: Initial SCTP support for the upcoming 1.6.5 release
Date: Mon, 23 Aug 2004 21:54:31 +0200	[thread overview]
Message-ID: <3FE09419-F53E-11D8-B290-000D932C78D8@lurchi.franken.de> (raw)
In-Reply-To: <87oel2r7p3.fsf@zip.com.au>

Hi Kevin,

the problem is that this function is defined in socket.c and the 
structures
I'm interested in are SCTP specific. As far as I understood the comments
on the list it is not appropriate that SCTP stuff is used that fil (or
in guile at all).

Since the set/getsockopt function does not reference any specific 
structure
it would be a possibility of have it provided as generic as it is in C 
and
I would write some scheme functions to transfer the SCTP specific data
into the generic one. This would allow me to provide a C based module to
provide SCTP functionality without using my own version guile which I
want to avoid, because it is difficult for me to test all the platforms.

BTW, do you know how handle a function like

SCM_DEFINE (net_sctp_recvmsg, "sctp-recvmsg!", 2, 2, 0,
             (SCM sock, SCM str, SCM start, SCM end),
	    "Return data from the socket port @var{sock} and also\n"
....
	    "descriptor: any unread buffered port data is ignored.")
#define FUNC_NAME s_net_sctp_recvmsg
{
   int rv;
....
   return scm_list_4 (SCM_MAKINUM (rv), address, SCM_MAKINUM (flg), 
s_sinfo);
}
#undef FUNC_NAME

in a module? I have not found an example for C based modules for guile 
yet.
Everything distributed with guile is scheme based, I think.

Best regards
Michael

On Aug 23, 2004, at 2:58 AM, Kevin Ryde wrote:

> Michael Tuexen <Michael.Tuexen@lurchi.franken.de> writes:
>>
>> Could the setsockopt and getsockopt functions be extended such that
>> they support an arbitrary length opt_value?
>
> The best is for the guile code to understand the data passed so it can
> do a sensible conversion.  You'll have to say what you're trying to
> use.
>



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2004-08-23 19:54 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
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 [this message]
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=3FE09419-F53E-11D8-B290-000D932C78D8@lurchi.franken.de \
    --to=michael.tuexen@lurchi.franken.de \
    --cc=guile-devel@gnu.org \
    --cc=rlb@defaultvalue.org \
    /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).