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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
I send these patches to the patches section of this project, you can find them there.
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