Oliver Kellogg | 12 Mar 2010 16:33
Favicon

Addition of Null_Socket_FD in sockets.ads

Hi,

I found the Null_Socket_FD useful for checking whether a Socket_FD has a 
usable value, in the sytle of

   if My_Socket /= Sockets.Null_Socket_FD then
      -- now we know that My_Socket is usable
   end if;

Further, I found that "make clean" does not remove the b~* files created by 
gnatbind so I added that to the clean rule.

One observation: "make clean" in doc/ removes the *.texi files - is that 
intentional?

Thanks for AdaSockets,

 Oliver

--

-- 
Oliver M. Kellogg
EADS Deutschland GmbH
Defence and Communication Systems
Dept. ISEG42
89077 Ulm
Tel: +49 (0) 731.392-7138
E-Fax: +49 (0) 731.392-20 7138
E-Mail: Oliver.Kellogg <at> eads.com

EADS Deutschland GmbH
(Continue reading)

Samuel Tardieu | 18 Mar 2010 14:36
Gravatar

Re: Addition of Null_Socket_FD in sockets.ads

>>>>> "Oliver" == Oliver Kellogg <oliver.kellogg <at> eads.com> writes:

Oliver> Hi, I found the Null_Socket_FD useful for checking whether a
Oliver> Socket_FD has a usable value, in the sytle of

Integrated, thanks. This is present in the GIT repository, and I'll cut
a release with your changes after I add some documentation.

Oliver> Further, I found that "make clean" does not remove the b~* files
Oliver> created by gnatbind so I added that to the clean rule.

Thanks, integrated too.

Oliver> One observation: "make clean" in doc/ removes the *.texi files -
Oliver> is that intentional?

Well, those can be rebuilt (if you have autogen), so I don't see that as
a problem. Maybe not a wise idea though :)

  Sam
--

-- 
Samuel Tardieu -- sam <at> rfc1149.net -- http://www.rfc1149.net/

_______________________________________________
AdaSockets mailing list
AdaSockets <at> lists.rfc1149.net
http://lists.rfc1149.net/mailman/listinfo/adasockets

Samuel Tardieu | 18 Mar 2010 20:48
Gravatar

AdaSockets 1.8.8 is released

It includes Oliver's changes. Thanks Oliver!

Get it from

    http://www.rfc1149.net/devel/adasockets/

If you're using Arch Linux, the package is up-to-date.

  Sam
--

-- 
Samuel Tardieu -- sam <at> rfc1149.net -- http://www.rfc1149.net/

_______________________________________________
AdaSockets mailing list
AdaSockets <at> lists.rfc1149.net
http://lists.rfc1149.net/mailman/listinfo/adasockets

Samuel Tardieu | 18 Mar 2010 21:24
Gravatar

Re: AdaSockets 1.8.8 is released

>>>>> "Sam" == Samuel Tardieu <sam <at> rfc1149.net> writes:

Sam> It includes Oliver's changes. Thanks Oliver!  Get it from

Sam>     http://www.rfc1149.net/devel/adasockets/

Btw, there is a parallel version named 1.9-alpha2 which takes advantage
of the underlying GNAT.Sockets implementation. I would like to switch to
it, it would be great if it could be tested as well:

  http://www.rfc1149.net/download/adasockets/adasockets-1.9-alpha2.tar.gz

 Sam
--

-- 
Samuel Tardieu -- sam <at> rfc1149.net -- http://www.rfc1149.net/

_______________________________________________
AdaSockets mailing list
AdaSockets <at> lists.rfc1149.net
http://lists.rfc1149.net/mailman/listinfo/adasockets

Kellogg, Oliver | 31 Mar 2010 14:34
Favicon

Re: static

On 2007-12-08 13:34:23 GMT, Samuel Tardieu <sam <at> rfc1149.net> wrote:
> 
> On  8/12, Thomas De Contes wrote:
> 
> > It seems that with adasockets-config it uses automatically the
shared 
> > version
> 
> It has nothing to do with AdaSockets or adasockets-config; just add
> "-static" before the call to "adasockets-config --libs" on your
gnatmake
> command line.
> 
> But why would you want to do that?

For example, we wish to link only the adasockets lib statically but
other libs dynamically.
I use the following workaround in my Makefile:

# adasockets-config does not return the flags as we want them:
# For --cflags, we want -A not -I (to avoid recompilations)
# For --lflags, we want the static library not the dynamic library
ADASOCKETS_ROOT = $(shell type -p adasockets-config | sed
's <at> /bin/adasockets-config <at>  <at> ')
ADASOCKETS_CFLAGS := -A$(ADASOCKETS_ROOT)/lib/adasockets $(INCLUDES)
ADASOCKETS_LFLAGS := $(ADASOCKETS_ROOT)/lib/libadasockets.a

HTH,

Oliver
(Continue reading)


Gmane