[zeromq-dev] Event Identified
Doron Somech
somdoron at gmail.com
Tue Dec 11 13:13:28 CET 2012
Any thoughts? do you think it's ok to add GetFD method to the IEngine
interface?
Any objections to the feature?
On Mon, Dec 10, 2012 at 1:16 AM, Lourens Naudé <lourens at methodmissing.com>wrote:
> Correct - sorry, my bad.
>
>
> On Sun, Dec 9, 2012 at 11:10 PM, Doron Somech <somdoron at gmail.com> wrote:
>
>> Hi,
>>
>> I'm not sure, i think (not sure) the ZMQ_FD is returning the mailbox
>> socket (signaler) and not the tcp socket.
>>
>>
>> On Mon, Dec 10, 2012 at 1:07 AM, Lourens Naudé <lourens at methodmissing.com
>> > wrote:
>>
>>> Hi Doron,
>>>
>>> Or you could also use the ZMQ_FD socket option
>>> against zmq::socket_base_t::getsockopt (int option_, void *optval_,
>>> size_t *optvallen_) and not change the engine interface ...
>>>
>>> On Sun, Dec 9, 2012 at 11:01 PM, Doron Somech <somdoron at gmail.com>wrote:
>>>
>>>> Hi,
>>>>
>>>> Because of security needs I need to know the ip address of each socket
>>>> connecting to my system (matching identity to ip address).
>>>> I'm using dealer-router, the router is the one doing the bind and the
>>>> dealer connecting, i thought about adding a new event called Event
>>>> Identified or something that when the identifier message arrived this event
>>>> is called (maybe only for tcp) with the identifier and socket file
>>>> descriptor. there a lot of other thing this feature can be used to, you can
>>>> now deny anonymous identities (close the socket of any anonymous identity),
>>>> just verify identity or manage a list of socket to identifier.
>>>>
>>>> Anyway I thought to implement this in the push_msg method of the
>>>> session_base, the problem is that i don't have the socket file descriptor
>>>> in the session_base class.
>>>> I thought about adding GetFD to the IEngine interface and then the
>>>> PushMsg will use that method to get the file descriptor (the method will
>>>> return zero if engine is using socket).
>>>> .
>>>>
>>>> Thoughts?
>>>>
>>>> Thanks,
>>>>
>>>> Doron
>>>>
>>>> _______________________________________________
>>>> zeromq-dev mailing list
>>>> zeromq-dev at lists.zeromq.org
>>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>>
>>>>
>>>
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev at lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>>
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
>
> _______________________________________________
> 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/20121211/eaf7bf72/attachment.htm>
More information about the zeromq-dev
mailing list