On Wed, Oct 30, 2013 at 1:34 AM, Andrew Hume and...@research.att.com wrote:
i have a central server fed by a client.
the client needs to push a large amount of data to teh server but only exit
when the server is done processing it.
both client and server are running on the same linux box.
On Wed, Oct 30, 2013 at 10:06 AM, Full Name finn_schm...@myway.com wrote:
This option [ZMQ_ROUTER_RAW] is deprecated, please use ZMQ_STREAM sockets
instead.
Indeed.
You'll probably be the first person to try using ZMQ_STREAM over a
socks proxy, so my advice would be to study how this works
Hello.
Way back I asked what happened to number of OS sockets per 0mq inproc socket in
2.1
(BTW the original piece of code was wrong of course, this is a pure inproc
story).
Pieter's answer (There might be a way to optimise for pure inproc use) gave
me some hope.
How many OS sockets per an
This socket was renamed to ZMQ_STREAM, you should probably look into that.
See this mail from Pieter from a while back for details:
http://comments.gmane.org/gmane.network.zeromq.devel/19547
On Wed, Oct 30, 2013 at 10:06 AM, Full Name finn_schm...@myway.com wrote:
I'm trying to connect to a
It uses a socketpair, so two system file handles.
On Wed, Oct 30, 2013 at 11:13 AM, Ilja Golshtein ilej...@narod.ru wrote:
Hello.
Way back I asked what happened to number of OS sockets per 0mq inproc socket
in 2.1
(BTW the original piece of code was wrong of course, this is a pure inproc
You should not treat the identity generated by a ROUTER socket as a
string, it will always be a null byte followed by some binary data.
Instead, read the identity frame off the socket, and then send it back
as a frame.
Also, don't try to get the identity as a socket option. That is for
setting
Good news Pieter, finally, CURVE works even when I penalise the
handcheck, whatever implementation I use (multithread or sub-processes,
shared context or not). Here is the report of my experiments (the first
two was already described in the previous messages):
1. Client multithreading with
I am not using a ROUTER socket. In my silly example I am using two
ZMQ_STREAM sockets connected together as client and server. I understand I
can use a ROUTER in raw mode when considering the a server scenario but in
this instance I am more interested in the client scenario.
My simple example
Sorry. You're right, the getsockopt retrieves the identity as a
client. When reading data, the first frame is an identity (ZMQ_STREAM
is a subclass of ZMQ_ROUTER).
Store the identity in a byte array of 255 bytes, and keep the length
as provided by getsockopt separately, then use that when you
I try implement recv_event method for my Lua binding [1].
For zmq 4.0 all warks fine but for zmq 3.2.x I can not get address.
My code: https://github.com/moteus/lzmq/blob/5bf0d2eb0b/src/zsocket.c#L162
The problem is that i get some garbage at
address `event.data.accepted.addr` [2]
In doc I found:
ugh.
ok, i'll bite -- i guess i'll take this opportunity to grok ROUTER/DEALER.
how do i generate (on the dealer side) teh identity part?
(i'm assuming that i need to send a 3 part message on the sending side.)
On Oct 30, 2013, at 2:04 AM, Pieter Hintjens wrote:
On Wed, Oct 30, 2013 at 1:34
On Wed, Oct 30, 2013 at 3:09 PM, Alexey Melnichuk mi...@newmail.ru wrote:
I try implement recv_event method for my Lua binding [1].
For zmq 4.0 all warks fine but for zmq 3.2.x I can not get address.
... I can't help with this one.
The second question. Why in zmq_z85_XXX `src` is not const
On Wed, Oct 30, 2013 at 3:13 PM, Andrew Hume and...@research.att.com wrote:
ugh.
ok, i'll bite -- i guess i'll take this opportunity to grok ROUTER/DEALER.
how do i generate (on the dealer side) teh identity part?
(i'm assuming that i need to send a 3 part message on the sending side.)
For
Pieter Hintjens ph at imatix.com writes:
On Wed, Oct 30, 2013 at 3:09 PM, Alexey Melnichuk mimir at newmail.ru
wrote:
I try implement recv_event method for my Lua binding [1].
For zmq 4.0 all warks fine but for zmq 3.2.x I can not get address.
... I can't help with this one.
Is it
Alexey Melnichuk schreef op de 30e dag van de wijnmaand van het jaar 2013:
I try implement recv_event method for my Lua binding [1].
For zmq 4.0 all warks fine but for zmq 3.2.x I can not get address.
See my binding for Go, perhaps it helps:
C part:
Alexey Melnichuk mimir at newmail.ru writes:
Is it doesn't work at all?
`event.data.connected.addr` pointed to garbage.
Problem not in Lua code.
If address is not supported maybe you should mention about this in doc.
May be `addr` point on some thing like `struct sockaddr_in`?
Sorry. I
ok, i got that to work, albeit in an ad hoc way.
is there some systematic way to breakdown the frame structure,
or do i simply duplicate what is there but change the last part (the content)?
On Oct 30, 2013, at 7:30 AM, Pieter Hintjens wrote:
On Wed, Oct 30, 2013 at 3:13 PM, Andrew Hume
Hi All-
I was looking for a way to manage actions/resources around clients connecting
and
disconnecting from a router socket. Was happy to see the socket-monitor
interface,
but it only gets partway there...
Since the socket-monitor messages deal with file-descriptors as an ID, there
still
Alexey Melnichuk schreef op de 30e dag van de wijnmaand van het jaar 2013:
I try implement recv_event method for my Lua binding [1].
For zmq 4.0 all warks fine but for zmq 3.2.x I can not get address.
My code: https://github.com/moteus/lzmq/blob/5bf0d2eb0b/src/zsocket.c#L162
The problem is
19 matches
Mail list logo