[zeromq-dev] Question for Python example in Perf folder
kfadnis
kfadnis at gmail.com
Wed Apr 22 06:32:12 CEST 2009
Ok, I got it working. For some reason, maybe someone can explain,
"localhost:portnumber" did not work, but "*:portnumber" worked. So i tried
"*:1234" and it worked.
But another problem came up, the message size transmitted is incorrect and
thus the assertion for checking the message size on the local side fails. I
tried sending various messages and the messsages themselves come through
fine, but the size does not match.
On Tue, Apr 21, 2009 at 8:54 PM, Aamir M <intuitionist at gmail.com> wrote:
> Sorry, I'm not using Windows or Python so I don't really know what to say.
> Are you sure that you're running zmq_server? Someone mentioned on this list
> that the Python performance tests have to be run in a different order than
> the C++ tests? ... I suppose you could try that.
>
>
> On Tue, Apr 21, 2009 at 3:27 PM, kfadnis <kfadnis at gmail.com> wrote:
>
>> Thanks Aamir. I understand but the commands below gave me the
>> following error.
>>
>> Assertion failed!
>> Program c:\python25\python.exe
>> File: ..\..\libzmq\ip.cpp
>> Line 161
>>
>> Expression addr.S_un.S_addr !=INADDR_NONE
>>
>>
>> On Tue, Apr 21, 2009 at 2:44 PM, Aamir M <intuitionist at gmail.com> wrote:
>>
>>> kfadnis,
>>> Try
>>>
>>> py_local_thr localhost localhost:1234 10 10000
>>> py_remote_thr localhost 10 10000
>>>
>>> The first argument tells py_local_thr where to find zmq_server and the
>>> second argument tells it which IP and port to bind its service to (I chose
>>> port 1234 as an example). The first argument to py_remote_thr tells it where
>>> to find zmq_server. Notice that py_remote_thr does not need an "interface"
>>> argument because the zmq_server directory service will automatically
>>> tell py_remote_thr where on the network the py_local_thr global resource is
>>> located (in this case it is located at localhost:1234).
>>>
>>> Aamir
>>>
>>>
>>> On Tue, Apr 21, 2009 at 12:41 PM, kfadnis <kfadnis at gmail.com> wrote:
>>>
>>>> Very basic question, but I am not even able to run locally the
>>>> py_local_thr and py_remote_thr example.
>>>>
>>>> what are the arguments supposed to be for hostname, interface on a
>>>> standalone computer running XP.
>>>>
>>>> Also, the way I am running the examples, I start the zmq_server first
>>>> and then run
>>>> py_local_thr localhost interface 10 10000
>>>>
>>>> py_remote_thr localhost 10 10000
>>>>
>>>> Thanks.
>>>>
>>>> _______________________________________________
>>>> zeromq-dev mailing list
>>>> zeromq-dev at lists.zeromq.org
>>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090422/48e8d769/attachment.htm>
More information about the zeromq-dev
mailing list