Menu

PTP_LISTENING always blocking?

Help
Qiyao Yu
2011-03-17
2012-11-23
  • Qiyao Yu

    Qiyao Yu - 2011-03-17

    I am reading into ptpd-1.1.0 source to see if it is possible to transplant to windows. It looks to me that the computer will go into PTP_LISTENING state after starting up, and then get blocked in netSelect() with null timeout, unless there is a master that send msg to it. Am I right? How can any computer go into PTP_MASTER? What if there is no master initially?  All computers waits and do nothing? Thanks in advance for any helpful explanations.

     
  • Jan Breuer

    Jan Breuer - 2011-03-17

    First of all, I already created the port to windows and I send patches to gnn. I can also send them to you.

    Problem is, that netSelect relays on SIG_ALRM, that break its infinite loop. On windows and all other non UNIXlike systems, it must be reimplemented differently, because there is not SIG_ALRM.

     
  • Jan Breuer

    Jan Breuer - 2011-03-17

    I send these patches to the patches section of this project, you can find them there.

     
  • George Neville-Neil

    Hi,

    I'm on travel this week in Japan.  I will be looking at rolling out the next version of PTPd (1 and 2) when I return to the US
    and will then try integrating the Windows support after that.

    Best,
    George

     

Log in to post a comment.