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

Chapter 9. Remote Methods > Server-to-Server Calls

9.5. Server-to-Server Calls

A powerful but often overlooked feature of FlashCom is the ability for a server-side script to create a NetConnection to another application instance on the same server or on any other machine running the FlashCom Server. This is a very important feature, which can be used to create lobby/rooms-style applications or to make applications scalable across multiple servers, as discussed in Chapter 16.

The server-to-server model closely mimics the client-to-server calls discussed in previous sections. In a server-side script, you can create a NetConnection object and connect it to a regular RTMP address, and the other application instance will treat the connecting instance just like any other client. One instance can connect to another one by creating a NetConnection object and then calling connect( ):


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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