[Vortex] [PATCH] greeting message and other issues

MAHE Antoine a.mahe at sofrel.com
Wed Feb 27 14:32:44 CET 2008

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

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

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: <greeting>
       L:    <profile uri='A' />
       L: </greeting>
       L: END
       I: RPY 0 0 . 0 xxx
       I: Content-Type: application/beep+xml
       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.

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.

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

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.

Antoine Mahé
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vortex-greetings.patch
Type: application/octet-stream
Size: 8426 bytes
Desc: vortex-greetings.patch
Url : http://lists.aspl.es/pipermail/vortex/attachments/20080227/7af28f76/attachment.obj 

More information about the Vortex mailing list