if php does not let you get the raw file descriptor from a socket, I will actually make an extra effort to make fun of them for being silly to take such an important thing away from a programmer. I am going to stick to the hope that they are not that foolish. maybe you can make your own binary php module to do it =p On Fri, Jun 18, 2010 at 1:55 PM, Helmut Kuper <helmut.kuper@ewetel.de>wrote:
Hi Anthony,
yes, understand. Well, I've searched a few hours for a way to get it, but I found no - at least not in my centos standard php installation and not in Google. I found some hints (or requests) about dio_rawfd() there, but it seems such a function doesn't exists.
If you or any other here have an idea where to look except adapting the code I would like to know it. You are right saying patching autogenerated code is a bad idea. But this is the only way I found so far. Maybe
regards helmut
Am 18.06.2010 19:08, schrieb Anthony Minessale:
That's unacceptable. you cannot patch a generated swig file.
you need to learn what function in php gives you the raw file descriptor number from your socket and pass that to the constructor as required.
The whole time your problem is that you don't know how to do this in PHP so you should stop looking in the code and just find the php method of a socket object to product the real file descriptor.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900