0

What's the difference between a NetConnection and Consumer/Producer in Flex? It seems that they both use RTMP but Consumer/Producer uses Channels and NetConnection does not. Does the Consumer/Producer uses a NetConnection underneath?

razlebe
  • 7,134
  • 6
  • 42
  • 57
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244

1 Answers1

1

NetConnection is a low-level Flash Player class that enables bidirectional communication between the Flash Player and a server. Both the RMI (remote objects) and Messaging (producer/consumer) implementations use NetConnection in their channels to do the actual communication to and from the server.

Christophe Herreman
  • 15,895
  • 9
  • 58
  • 86
  • Thx, another question if I may. They both use NetConnection, but RMI uses http and messaging uses rtmp. Does this mean NetConnection can handle multiple protocols? Or am I missing something here? + is there documentation on this? – Lieven Cardoen Oct 23 '09 at 11:42
  • If NetConnection handles both of protocols, then IIS routes http requests to asp.net process. But what about rtmp? Do you know how IIS handles an rtmp request? (I know weborb starts a rtmpServer, but how does it intercept the rtmp requests?). – Lieven Cardoen Oct 23 '09 at 11:49