Hi Matthew,

Thanks for the reply, it cleared things up.

What i 'm trying to achieve is this: I have a application that is just listening to updates according to the preferences within tha app, and checks every 5 minutes if there is an update. However with the push model , as soon as an update is available it is pushed to all connected clients. And this is what i would like to accomplish, to have updates pushed to my app. Updates are in the form of xml or text (dont know how an socket server pushes its data, or in what format it is. is there and uniform format or can i specify?)

Thanks

Sidney


Matthew James Poole wrote:
Hi Sidney,

It is possible to write socket servers in PHP (theres one in the Pear
library), but php is not generally considered a good language to write
one in. As such most Socket Servers used with Flash are written in Java
(or sometimes .Net).

It really depends on what you are trying to achieve, for example if its
multiuser games or chat then there are plenty of 3rd party solutions out
there - SmartFox and ElectroServer being just two. Also have you
considered using FMS? The new FMSI (or FMS 3.0) is looking like it will
be very good...
... If the data doesn't need to be instantly synchronised across all
users then you might be better opting for polling your php on interval.

BlazeDS is the new Open Source remoting and web messagaing solution from
Adobe. I believe it used to be part of Life Cycle Data services which is
a paid-for product, but Adobe have now opened it up. Ultimately there
will be some sort of socket server involved in BlazeDS. BlazeDS is more
the framework that makes it easy to integrate distributed data into
Flex/AIR (also its written in Java so you'd need some sort of Java
application server such as Apache Tomcat (free) or IBM Websphere (not
free) etc).

Heres the BlazeDS link on labs:
http://labs.adobe.com/technologies/blazeds/

Hope all this helps

Cheers
Matt

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 08 January 2008 15:54
To: Flash Coders List
Subject: Re: [Flashcoders] PUSH/PULL model in AIR

Hi Matthew!

With a socket server, can you tell me how to go? What software would i
need, and how long would it take to set up a socket server? (can this be
done with php, or do i need another language? because it needs to
support quite some people).

Can you also explain the difference tween a socket server and BlazeDS?

Thanks in advance,

Sidney

Matthew James Poole wrote:
Everything you can do in Flex you can do in AIR, with the addition that the security model is more relaxed. So yes polling a php script would work. Or you could use XMLSocker or BinarySocker to have actual push - though you'd need a socket server to achieve this...

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney

de Koning
Sent: 08 January 2008 14:30
To: Flash Coders List
Subject: [Flashcoders] PUSH/PULL model in AIR

Hi List,

Is there a push/pull model in AIR like there is in Flex? I need to show a popup if the database has changed.
What is the best way of realizing this?
My idea was this;
let the air app contact a server/database (through php) with an interval of 5 minutes orso to see if the data has changed, and if so, show the popup. To simulate a push model.

If anybody has some ground breaking ideas, or a really good way of realizing this, i'd love to hear!

Thanks,

Sidney
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

______________________________________________________________________
This e-mail has been scanned for viruses by the Virtual Universe e-mail security system - powered by MessageLabs.
http://www.virtual-universe.net


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

______________________________________________________________________
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

______________________________________________________________________

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel: +44 (0) 870 788 6000
Fax:     +44 (0) 870 788 6689

Web:    www.virtual-universe.net

-----------------------------------------------------------------------------------------

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If you are not the named addressee of this e-mail, you may not copy or use it, or forward or otherwise disclose it to anyone else. If you have received this e-mail in error, please e-mail the sender by replying to this message and then fully delete it from your system.
Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



______________________________________________________________________
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to