Re: [JDEV] Foreign protocol transports using Jabber::Connection?

2001-11-09 Thread Piers Harding


I do!

Cheers.

On Thu, Nov 08, 2001 at 06:42:51PM +0800, Migs Paraz wrote:
> On Wed, Nov 07, 2001 at 05:28:08PM +, DJ Adams wrote:
> > Well, considering that you can do pretty much what you want with 
> > Jabber XML using Jabber::NodeFactory (and the fact that the API 
> > sort of reflects the xmlnode library used in the jabber.org server
> > anyway), I'd say yes.
> > 
> > But then I'm biased, of course. Jabber::Connection is what I use,
> > but it is still comparatively "young".
> 
> 
> well I've proven it works with my "JUD" (to which I'll add DBI database
> calls later)... now I'll try writing a test transport for foreign IM's.
> 
> any other Jabber::Connection users out there?
> ___
> jdev mailing list
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



Re: [JDEV] Foreign protocol transports using Jabber::Connection?

2001-11-09 Thread DJ Adams

On Thu, Nov 08, 2001 at 05:04:33PM -, Ben Schumacher wrote:
> That being said, there is not reason you'd have to do threading for a
> transport. You just need to be able to associate each ICQ connection with

Agreed. No requirement to use threads.

dj
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



Re: [JDEV] Foreign protocol transports using Jabber::Connection?

2001-11-09 Thread DJ Adams

On Thu, Nov 08, 2001 at 06:42:51PM +0800, Migs Paraz wrote:
> any other Jabber::Connection users out there?

Me! Me!

;-)

dj
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



Re: [JDEV] Foreign protocol transports using Jabber::Connection?

2001-11-09 Thread Ben Schumacher

That being said, there is not reason you'd have to do threading for a
transport. You just need to be able to associate each ICQ connection with
a Jabber connection.

And you need to setup your software to be able to wait for input from
either the ICQ connections or the Jabber server.

Basically, threads are used to allow you to schedule events and such, but
just because they aren't available doesn't mean that you won't be able to 
write a transport. That doesn't mean its not going to be hard, you'll
probably just run into issues more important than whether you can do
threading.

Ben

On Thu, 8 Nov 2001, Richard Dobson wrote:
> I dont think you can do threading in Perl, not the last time I was
> programming in it a year ago anyway.
> 
> > On Thu, Nov 08, 2001 at 06:42:51PM +0800, I wrote:
> > I find that the Jabber part is really easy!  Just trial and error with
> > gabber to see what is sent to the Perl client, then look it up in
> > jabber-programmers.pdf.
> >
> > Now the hard part:
> > I find that threads are used in the transport code (I looked at AIM and
> ICQ)
> > and I would assume that they are needed since a single transport pretends
> > to be the IM user for each of the clients.
> >
> > Any suggestions on how to implement this in Perl?  I have no experience
> > in threads in any language... :(

___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev



Re: [JDEV] Foreign protocol transports using Jabber::Connection?

2001-11-11 Thread Migs Paraz

On Fri, Nov 09, 2001 at 02:53:23PM +, DJ Adams wrote:
> On Thu, Nov 08, 2001 at 05:04:33PM -, Ben Schumacher wrote:
> > That being said, there is not reason you'd have to do threading for a
> > transport. You just need to be able to associate each ICQ connection with
> 
> Agreed. No requirement to use threads.


In what I've looked so far, the Net::ICQ2000 module was designed with a
single ICQ user per process in mind.  I'm going to see if we can work around
it to support multiple users.

But before that, I need to finish my JUD component today.
___
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev