[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: BeOS PPC Compilation Fixes

From: David Reid <dreid_at_jetnet.co.uk>
Date: 2000-12-03 14:10:44 CET

Joe,

You're correct. Any version of BeOS prior to BONE, which includes the
version Sam is using doesn't support MSG_PEEK. I added buffering as it
seemed like the only way that we could get the functionality.

AFAIK Neon was working on BeOS R5 as I managed to get Cadaver working for R5
and hence it should work on Sam's system. Sam, I'll check it here and email
you if it's broken. It could be that the changes didn't land in the main
neon tree, but I'll try to get it building again this morning.

Sam, if you have more issues email me and we'll avoid duplicating effort :)

david

----- Original Message -----
From: "Joe Orton" <joe@light.plus.com>
To: <dev@subversion.tigris.org>; "Sam TH" <sam@uchicago.edu>
Cc: <neon@webdav.org>; "David Reid" <dreid@jetnet.co.uk>
Sent: Sunday, December 03, 2000 10:34 AM
Subject: Re: BeOS PPC Compilation Fixes

> On Sun, Dec 03, 2000 at 02:48:10AM -0600, Sam TH wrote:
> > This patch is wrong, however I include it to demonstrate the
> > problem. There is no arpa/inet.h on the system I'm on (no inet.h at
> > all in fact). The only thing needed from that file is the defintion
> > of
> > MSG_PEEK (which is defined nowhere in my headers). So I took out the
> > include, and added the definition, which fixed the problem. I took the
> > define from the headers on my linux box.
> >
> > However, this is obviously the wrong solution. What's the right one?
>
> I'm cc'ing David Reid who ported neon to BeOS a while ago; I think the
> problem is that BeOS doesn't actually support recv() in MSG_PEEK mode,
> is that right David? That is a very awkward problem :(
>
> The solution David had was to add buffering to the socket code.
>
> > diff -ur neon-0.7.7/src/socket.c neon/src/socket.c
> > --- neon-0.7.7/src/socket.c Thu Oct 26 16:28:45 2000
> > +++ neon/src/socket.c Sat Dec 2 22:54:55 2000
> > @@ -64,7 +64,7 @@
> > #endif
> >
> > #include <netinet/in.h>
> > -#include <arpa/inet.h>
> > +/*#include <arpa/inet.h>*/
> > #include <netdb.h>
> >
> > #include <errno.h>
> > @@ -103,6 +103,8 @@
> > #define ERROR_SSL_STRING (ERR_reason_error_string(ERR_get_error()))
> >
> > #endif
> > +
> > +#define MSG_PEEK 0x02
> >
> > struct nsocket_s {
> > int fd;
> >
> > Thanks
> >
> > sam th
> > sam@uchicago.edu
> > http://www.abisource.com/~sam/
> > GnuPG Key:
> > http://www.abisource.com/~sam/key
>
>
>
Received on Sat Oct 21 14:36:16 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.