Hello, The documentation here <http://rachid.koucha.free.fr/tech_corner/pty_pdip.html> helped me building a solution. What I did : 1. open /dev/ptmx (the master), which creates a /dev/pts/X (the slave) pseudo terminal 2. print the name of the /dev/pts/X created on standard output 3. redirect standard files to the file descriptor I have on /dev/ptmx 4. wait (with inotify) for someone to open /dev/pts/X 5. call exec() on pppob
One more step which can be taken between 2. and 3. is to daemonize. Maybe that sort of feature could be added into pppob. It could simplify the integration with, for example, NetworkManager I guess. That's cool, pppob now acts like a tty and I think we will be able to integrate it soon. On 05/05/11 23:30, Chris Frey wrote: > On Thu, May 05, 2011 at 09:56:19AM +0200, Nicolas CARRIER wrote: >> Hello, >> The current git version worked for the BB 7130g. > Thanks for testing! > > >> Concerning the tty stuff, we (at Parrot) have a tool which manages >> internet connections with USB 3G dongles, mainly via the ttys they create. >> apparently, when I type pppd call my_carrier_conf, pppd "transforms" >> pppob into a tty (/dev/pts/some_number). >> What I would like to know is if it's possible to do the same thing as >> pppd does, in order to integrate barry, without more effort into our 3G >> dongles manager. >> It seems related to "pseudo-terminal master and slave", I'm reading some >> doc about it now. > I haven't been able to get pseudo ptys working yet, but note that > if you're using a Bluetooth capable device, then that mechanism uses > a /dev device, to my knowledge, and maybe you can hook into that. > > The recent distros have this support built in (Ubuntu, etc), but > there are some low level notes on Bluetooth at the bottom of this > page: > > http://www.netdirect.ca/software/packages/barry/modem.php > > - Chris > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Barry-devel mailing list > Barry-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/barry-devel > -- Nicolas CARRIER - ???? - 2ème centre ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel