• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Using XML with Flash > INTRODUCING SOCKET SERVERS

INTRODUCING SOCKET SERVERS

A socket server is an application that can accept “socket” connections. Socket connections are persistent—which means they let you remain connected to a server, rather than making a connection just long enough to download information and then disconnecting. Unlike a scripted page, a socket server is an application that’s always running. It can accept numerous simultaneous connections and exchange information between them. Thus, while you’re connected to a socket server, you can send or receive information any time. Using socket connections to continually transfer data to and from the server is how most chats and multiplayer games are created in Flash.

A key thing to understand about using socket connections with Flash is that you don’t have to request information to get it—for example, in a chat application a message can be pushed into Flash at any time without Flash having to ask for it.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint