How often are you talking about polling?  And how many clients?

 

I just built an app that uses both XMLSockets and polling. 

 

The polling works fine, using setInterval to invoke it.  I have a hundred clients each polling every 2 minutes.  The server doesn’t even think about breathing hard under that load.

 

I am still fighting security issues with the socket functionality.  The client side code is pretty simple.  I am using .NET for the socket server. There are many examples available out there.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of dos dedos
Sent: Thursday, March 16, 2006 2:41 PM
To: [email protected]
Subject: Re: [flexcoders] HTTP (or socket) Client and Server in Flex UI

 

Hi Abdul :)

<<
I am not sure, if Flash Player can listen on particular socket. But what you can do  is to start a session from Flash Player, then you can push data to player from server...
>>

Yes.. I'm leaning towards this approach UNLESS I find out that it's possible t o run an HTTPService polling loop as a thread separate from the AS execution thread.... I sent a message back to Ted Patrick on flexcoders about it...

I'll check out your client

Thanks a lot!!!!

Marc

Abdul Qabiz <[EMAIL PROTECTED]> wrote:

Hi,

I am not sure, if Flash Player can listen on particular socket. But what you can do  is to start a session from Flash Player, then you can push data to player from server...

You can do p2p apps in Flash Player...two flash player cant communicate over socket, I think that would be a cool feature but security concerns :)

BTW! I wrote a HTTP client, dirty code actually..check out on my blog: http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/http_authentica.php

-abdul

On 3/16/06, dos dedos <[EMAIL PROTECTED]> wrote:

Yikes! I forgot there are no threads in Flex! so a polling/listening loop won't work ... I would have to have a timer to poll periodically ... no so pretty ...

:(



dos dedos <[EMAIL PROTECTED]> wrote:

Replying to my own tired brain:

I should probably settle for polling!!!!!!!!!!!!!!111111111

dos dedos < [EMAIL PROTECTED]> wrote:


Hey, does anyone have an idea how to build an HTTP (or socket) client + server inside a Flex app?

I could use HTTPService for the client stuff but in my scenario I need to allow the Flex app to both send requests as well as receive them, so HTTPService is only half of the solution.. unless I'm missing something.

I could use FES pub-sub to push data to the Flex app (and HTTPService to pull data/make calls on demand) but I can't do that because of the additional cost of the FES deployment license (given that in my scenario the service would have to run on the user's desktop.) And I definitely want to avoid having to periodically poll for data from the Flex app.

I believe that it can be done but that I would have to spend a good amount of time experimenting with it.. However, it seems like a common need so I'd like to find out if anyone has done it before?

Thanks

marc


Yahoo! Mail
Use Photomail to share photos without annoying attachments.

 


Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.

 


Yahoo! Mail
Use Photomail to share photos without annoying attachments.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



SPONSORED LINKS

Web site design development

Computer software development

Software design and development

Macromedia flex

Software development best practice

 

 


YAHOO! GROUPS LINKS

 

 


 

 


Yahoo! Mail
Use Photomail to share photos without annoying attachments.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to