[viff-devel] Error when coding with callbacks and reveals

Tord Ingolf Reistad tordr at stud.ntnu.no
Mon Mar 9 04:08:30 PDT 2009


Hello,

Continuing on my previous email about how to code things in VIFF. I 
hereby present the complete test code.

It seems my calculations are done at the same time that the reactor is 
closing down so sometimes my code does not return any printed values. 
This is a mistake, either in my understanding of VIFF or in the 
framework itself.

See the two runs below.

C:\Documents and Settings\item\Desktop\VIFF\viff-dev\apps>tir_test.py 
--no-ssl player-3.ini
Seeding random generator with random seed 5522
Not using SSL
Listening on port 9003
Synchronizing shutdown... done.
Closing connections... Comparing  [{6}]  to 0
Result  [{12}]
Result  True
done.
Stopping reactor... done.

C:\Documents and Settings\item\Desktop\VIFF\viff-dev\apps>tir_test.py 
--no-ssl player-3.ini
Seeding random generator with random seed 3023
Not using SSL
Listening on port 9003
Synchronizing shutdown... done.
Closing connections... done.
Stopping reactor... done.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tir_test.py
URL: <http://lists.viff.dk/pipermail/viff-devel-viff.dk/attachments/20090309/e0d57ff8/attachment.txt>


More information about the viff-devel mailing list