[Vortex] [PATCH] greeting message and other issues

Francis Brosnan Blazquez francis at aspl.es
Mon Mar 3 18:31:39 CET 2008


> Hi everyone, 

Hi Antoine,

> this is my first post here. Please axcuse me for my bad english, i'm French.

No problem ;-)

> First of all, thank you very much for the job done on the Vortex library and it's excellent documentation.

Thanks..it is nice to hear this from users!

> I use the library to develop a protocol in which the listener and the initiator provides different profiles : 
> The listener has the server role for profile A and the initiator has the server role for profile B.
> The greetings messages should then be :
> 
>        L: <wait for incoming connection>
>        I: <open connection>
>        L: RPY 0 0 . 0 xxx
>        L: Content-Type: application/beep+xml
>        L:
>        L: <greeting>
>        L:    <profile uri='A' />
>        L: </greeting>
>        L: END
>        I: RPY 0 0 . 0 xxx
>        I: Content-Type: application/beep+xml
>        I:
>        I: <greeting>
>        I:    <profile uri='B' />
>        I: </greeting>
>        I: END
> 
> But this is not possible with the Vortex library. 
> So I made the attached patch (against version 1.0.13) in order to make this possible.

Thanks for the patch Antoine. I've applied it with some modifications
into the 1.0 branch, and then imported into the 1.1 branch. Now we have
a regression test that check this new feature.

> This works well but then comes another problem : If the listener opens a channel with profile B then this profile is automatically registered. On the next accepted session, the listener would advertise both A and B profiles. This is easily avoided with the profile filtering function.

So I guess this is solved.

> I alos saw something, probably linked to the automake process : when i try to build the library in a separate tree, the build of the tools fails : 
> 
> the commands :
> 
>  cd /opt/vortex/vortex-build
>  ../vortex-1.0.13.b3306.g3306/configure
>  make
> 
> fails with the following error :
> 
> if gcc -DHAVE_CONFIG_H -I. -I../../vortex-1.0.13.b3306.g3306/test -I.. -I../../vortex-1.0.13.b3306.g3306/libvortex/src -I/usr/local/include/axl    -pthread -I/include -Wall -g -ansi -DVERSION=\"""\" -I../src -DVORTEX_HAVE_POLL=1 -DVORTEX_HAVE_EPOLL=1 -DENABLE_VORTEX_LOG    -g -O2 -MT vortex-client.o -MD -MP -MF ".deps/vortex-client.Tpo" -c -o vortex-client.o ../../vortex-1.0.13.b3306.g3306/test/vortex-client.c; \
>         then mv -f ".deps/vortex-client.Tpo" ".deps/vortex-client.Po"; else rm -f ".deps/vortex-client.Tpo"; exit 1; fi
> ../../vortex-1.0.13.b3306.g3306/test/vortex-client.c:20:20: error: vortex.h: No such file or directory
> 
> 
> The libvortex directory in "-I../../vortex-1.0.13.b3306.g3306/libvortex/src" doesn't exist.

Maybe you can try to update your flags with something like:

>> CFLAGS="-I../the/right/path" ../vortex-1.0.13.b3306.g3306/configure

Cheers!

> Thanks
> Antoine Mahé
> _______________________________________________
> Vortex mailing list
> Vortex at lists.aspl.es
> http://lists.aspl.es/cgi-bin/mailman/listinfo/vortex
-- 
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.




More information about the Vortex mailing list