Re: [wmii] Looking for examples for libixp
I have little to add over what Kris and sqweek said other than that there is a 9p-hackers mailing list at: http://groups.google.com/group/9p-hackers And for all 9p resources http://9p.cat-v.org should be the place to go (if anything is missing, please let me know). Also note that Plan 9, Inferno and p9p man pages are not available at http://man.cat-v.org (which should be much more reliable and extensive than the Bell Labs site). Peace uriel On Tue, Apr 21, 2009 at 6:26 AM, Alexey Khudyakov wrote: > Hello, > > I'm not sure whether this right place to ask, but anyway. I've > tried to experiment with libixp without any success. Are there > any simple examples for libixp? One which comes with libixp nor > simple nor easy to understand. > > -- > Khudyakov Alexey > >
Re: [wmii] Looking for examples for libixp
2009/4/21 Alexey Khudyakov : >> Ok. Well, for libixp, the cannonical server example is wmii's fs.c, but it's >> not simple. Your best bet is probably, >> >> http://sqweek.dnsdojo.org/code/m9u/download >> >> http://plan9.bell-labs.com/sys/man/5/INDEX.html I also started on a 9p with libixp tutorial, which you can find at http://sqweek.dnsdojo.org/plan9/server.txt Haven't touched it for ages, by the time I got to introducing the message types I felt like I was just repeating the section 5 man pages linked above. I'd be interested to know whether you find the introduction useful though. At some point I want to go through m9u and see if I can't simplify things a bit more and add some handy comments. Oh, and fix the bugs of course ;) -sqweek
Re: [wmii] Looking for examples for libixp
> Ok. Well, for libixp, the cannonical server example is wmii's fs.c, but it's > not simple. Your best bet is probably, > >http://sqweek.dnsdojo.org/code/m9u/download > > You'd probably be better off starting with Plan 9's 9p docs, though: > >http://plan9.bell-labs.com/sys/man/5/INDEX.html >http://9p.cat-v.org/documentation > > Also, there are scores of examples in the Plan 9 source code. libixp's > server API is based on Plan 9's lib9p, so there's a lot of overlap. The only > big differences are libixp's lack of file trees and addition of srv_utils.c > (which is, unfortunately, undocumented but incredibly useful for simple > servers). > Thank you. I'll look into this.
Re: [wmii] Looking for examples for libixp
On Tue, Apr 21, 2009 at 08:35:02AM +0400, Alexey Khudyakov wrote: On Tue, Apr 21, 2009 at 8:28 AM, Kris Maglione wrote: On Tue, Apr 21, 2009 at 08:26:43AM +0400, Alexey Khudyakov wrote: I'm not sure whether this right place to ask, but anyway. I've tried to experiment with libixp without any success. Are there any simple examples for libixp? One which comes with libixp nor simple nor easy to understand. Which example, and what are you trying to do? ixpc.c is about as simple as it gets. Server examples are harder to come by, but I can point you at some if that's what you need. Server examples are exactly what I need. Ok. Well, for libixp, the cannonical server example is wmii's fs.c, but it's not simple. Your best bet is probably, http://sqweek.dnsdojo.org/code/m9u/download You'd probably be better off starting with Plan 9's 9p docs, though: http://plan9.bell-labs.com/sys/man/5/INDEX.html http://9p.cat-v.org/documentation Also, there are scores of examples in the Plan 9 source code. libixp's server API is based on Plan 9's lib9p, so there's a lot of overlap. The only big differences are libixp's lack of file trees and addition of srv_utils.c (which is, unfortunately, undocumented but incredibly useful for simple servers). -- Kris Maglione I have always found that plans are useless, but planning is indispensable. --Dwight Eisenhower
Re: [wmii] Looking for examples for libixp
On Tue, Apr 21, 2009 at 8:28 AM, Kris Maglione wrote: > On Tue, Apr 21, 2009 at 08:26:43AM +0400, Alexey Khudyakov wrote: >> >> I'm not sure whether this right place to ask, but anyway. I've >> tried to experiment with libixp without any success. Are there >> any simple examples for libixp? One which comes with libixp nor >> simple nor easy to understand. > > Which example, and what are you trying to do? ixpc.c is about as simple as > it gets. Server examples are harder to come by, but I can point you at some > if that's what you need. > Server examples are exactly what I need. -- Khudyakov Alexey
Re: [wmii] Looking for examples for libixp
On Tue, Apr 21, 2009 at 08:26:43AM +0400, Alexey Khudyakov wrote: I'm not sure whether this right place to ask, but anyway. I've tried to experiment with libixp without any success. Are there any simple examples for libixp? One which comes with libixp nor simple nor easy to understand. Which example, and what are you trying to do? ixpc.c is about as simple as it gets. Server examples are harder to come by, but I can point you at some if that's what you need. -- Kris Maglione Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. --Brian W. Kernighan
