Four New Properties Added to Socket

In response to feedback from the AIR 2 public beta, it looks like we’re going to be adding four new properties to the flash.net.Socket class:

  • Socket.localAddress: The local IP address of this Socket if it has been bounded locally — otherwise null.
  • Socket.localPort: The local port of this Socket if it has been bounded locally — otherwise 0.
  • Socket.remoteAddress: The remote IP address of this Socket if it has been connected — otherwise null.
  • Socket.remotePort: The remote port of this Socket if it has been connected — otherwise 0.

They’re not yet available in the current public beta build, but I would expect them to be in the next one. As always, thanks for the feedback!

(I’ve added these properties to Exhaustive List of Everything That’s New in AIR 2, so that’s still the definitive list.)