Bonjour,
je suis en train de travailler avec ce petit module qu'est "Serproxy", seulement j'ai un petit problème, je ne sais pas si mes données sont bien reçues par celui-ci.
Quand je fais :
_socket.connect("localhost", 5334);
Dans Serproxy j'ai :
1 2
| Server thread launched
server(4) - thread started |
Par contre, quand je fais après :
1 2
| _socket.writeUTFBytes(data);
_socket.flush(); |
Sur Serproxy je n'ai rien du tout... C'est là mon problème, je suppose qu'il doit afficher quelque chose.
De plus, si je ferme mon application AIR, Serproxy affiche :
1 2
| server(4) - EOF from sock
server(4) exiting |
La connexion doit donc bien être faite.
Je précise qu'au retour de ma fonction connect Flex, ma socket a dans son attribut TimeOutEvent une SecurityError Sandbox violation. Pourtant j'ai bien au tout début de mon application :
Security.loadPolicyFile("http://localhost/crossdomain.xml");
Merci pour votre aide.
Partager