> -----Original Message-----
> From: Richard Cochran [mailto:richardcoch...@gmail.com]
> Sent: Tuesday, December 10, 2013 10:22 AM
> To: Keller, Jacob E
> Cc: linuxptp-devel@lists.sourceforge.net
> Subject: Re: [Linuxptp-devel] ptp4l push notifications
> 
> On Mon, Dec 09, 2013 at 07:39:19PM +0000, Keller, Jacob E wrote:
> >
> > How would this work with multiple management interfaces? Is that even
> > possible?
> >
> > IE: multiple programs connected? Does the management interface
> properly
> > only send to a single client? If so we can use the client-request
> > details to send the data across to only that client. This way only
> > clients which perform the proper request message get the result.
> 
> On the UDS, the ptp4l server sends replies back to the particular
> client who made the request. The client's address is stored in the
> 'sa' field of the 'struct uds'. There is never more that one
> outstanding request, and so only the last address is stored.
> 
> [ There is no such thing as multicast unix domain sockets. ]
> 
> We will have to come up with a way of keeping track of clients wanting
> pushed messages.
> 
> Thanks,
> Richard

I'm not too familiar with management.. is it possible for management messages 
to come in via the network socket?

I think we should be able to store push requests via something like a hash..?

Create an array of things which can be pushed, then if the array slot is not 
null, it's a linked list of all the requests so far? (assuming correct that we 
want to support multiple clients requesting) Then each request could be a store 
of the address that requested that push notification? Linked list in this case 
would be fairly cheap, and we wouldn't have to sort them. The hash enables fast 
lookup of each push notification without having to scan a single list for every 
push notification.

Regards,
Jake

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to