PDA

View Full Version : Client/Server sockets in flash?


mlse
02-08-2006, 03:34 PM
Hi,

Before I go barking up the wrong conifer, I'm sure someone can put me right!

Is it possible to write client/server applications in Flash? (I mean, can you write a peice to flash to connect to a server and also act as a server itself) i.e. is there an ACCEPT protocol for Flash as well as the CONNECT protocol? Or does flash just stream data as a client to the web browser?

TIA.
Mike.

sachinbhatt
04-02-2009, 01:06 PM
I search through a lot of forums and so many sites searching for at least one glimpse of code fragment which describes the flash as a server...!!!

Alas, I could not. :( This is a fact. Flash does not provide any class like ServerSocket (which is available in Java).

I am planning therefore write my own class which will resemble the functionality of a ServerSocket though in the background it will be just a simple Socket...! Does not this sound great.. :)

Will let you know if in the future I complete my project in this regard.
All the best until then, and do let me know if you find something like this on your own or from any other resource. :thumbsup:

gnomeontherun
04-02-2009, 02:13 PM
http://livedocs.adobe.com/flex/2/langref/flash/net/Socket.html

AS3 and Flex docs show this.