[Vortex] feeder-api question

Francis Brosnan Blázquez francis at aspl.es
Fri Mar 18 08:46:17 CET 2011


> Hello

Hi Martin,

> Lately I've been experimenting with the feeder-api which seems like
> the right way to go. However, I do have a problem I am trying to
> understand.

Ok,

> The scenario is roughly this:
> 
> There is a file-server serving large media files (about 500 - 1500 mb
> each) and clients connect to this server requesting to download an
> image file. Nothing fancy really.
> 
> In the original implementation, the client connects, send a msg and
> the server replies with a series of ANS. The client gets a
> handle-frame callback for each ANS and stores it to some local
> storage.
> 
> I just tried to do this the feeder-api way. It looks like the server
> sends a series of ANS like it should but on the client side I never
> get any handle-frame callbacks, instead the client just grows in
> memory size so I assume it's queueing all recieved ANS.

..so frames somehow aren't delivered..

> I would appreciate some hints on ways forward to debug this. I don't
> need desperately it but its the right way to do it so I want to try to
> get it to work.

Ok, as a general hint I would try enabling debug (either calling to
vortex_log_enable, or setting environment variable
VORTEX_DEBUG=1 ./your-app). This will give you lot of output...

You can also check [1] and [2] to see how those examples are implemented
to get hints about what is failing..

I thinking about ways to make frames to be not notified is to not set a
frame received on the particular channel/profile/ctx, or to send some
replies with some of them missing (ie, sending replies 2 and 3, without
sending 1), and having vortex_channel_set_serialize activated...

> By the way, I don't use the supplied file-feeder, I wrote my own
> because the source of the media files isn't really the file system.

Nice Martin...

> Regards and thanks for a great library.

Thanks!

[1] https://dolphin.aspl.es/svn/publico/af-arch/trunk/libvortex-1.1/test/vortex-file-transfer-client.c
[2] https://dolphin.aspl.es/svn/publico/af-arch/trunk/libvortex-1.1/test/vortex-file-transfer-server.c

> /Martin
> 
> -- 
> Martin Eliasson
> +46 (0) 739 97 87 33
> http://asplunden.org
> _______________________________________________
> Vortex mailing list
> Vortex at lists.aspl.es
> http://lists.aspl.es/cgi-bin/mailman/listinfo/vortex



More information about the Vortex mailing list