Re: [nox-dev] Receiving JSON messages

2012-01-29 Thread kk yap
Hi, Reading the documentation might help. http://noxrepo.org/~yapkke/doc/classvigil_1_1jsonmessenger.html#_details Try have a type field. Regards KK On 29 January 2012 07:34, Giorgio Mazza giorgio.mazza...@gmail.com wrote: A little update and a further question :) With destiny's messenger

Re: [nox-dev] Receiving JSON messages

2012-01-29 Thread Giorgio Mazza
It was the type field, thanks! On 29/01/2012 16:45, kk yap wrote: Hi, Reading the documentation might help. http://noxrepo.org/~yapkke/doc/classvigil_1_1jsonmessenger.html#_details Try have a type field. Regards KK On 29 January 2012 07:34, Giorgio Mazzagiorgio.mazza...@gmail.com wrote: A

Re: [nox-dev] Receiving JSON messages

2012-01-27 Thread kk yap
Hi Giorgio, Your client is disconnecting before the reply is sent. If you look at nox-console.py, it should be a good example to follow. Regards KK On 27 January 2012 05:12, Kyriakos Zarifis kyr.zari...@gmail.com wrote: A JSONMsg_event is just another NOX event and us such it will either

Re: [nox-dev] Receiving JSON messages

2012-01-25 Thread Giorgio Mazza
A question about the socket opened when invoking jsonmessenger. What are the IP address, the tcp port and the interface that this socket refers to? Is there any way to set them? I undersotood the mechanism, but I don't know where to send my messages from the external application. Thank you.

Re: [nox-dev] Receiving JSON messages

2012-01-25 Thread Murphy McCauley
I believe it defaults to port 2703. You should be able to set the port number by specifying it on the commandline... ./nox_core -i ptcp: jsonmessenger=tcpport=4096 your_app_here It listens on all IP addresses; there is currently no way to specify just one. -- Murphy On Jan 25, 2012, at 1:11

Re: [nox-dev] Receiving JSON messages

2012-01-24 Thread Giorgio Mazza
Thank you. I try to sum up the operations I need to perform, to see if I understood correctly. Basically in my external application I have to set up a socket that sends json messages and this would be quite simple. In my nox component, instead, I have to import the JSONMsg_event and, within

Re: [nox-dev] Receiving JSON messages

2012-01-24 Thread Giorgio Mazza
Ok, thanks. Now things are more clear in my mind. I'll try and let you know if I succeed. Otherwise I would bother you again :) Regards, Giorgio On 24/01/2012 13:49, Murphy McCauley wrote: The minimum to get up and going should be something like this: 1) In your component's install