MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Instrukcja Użytkownika Strona 75

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 74
72
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Example
The following example creates a GroupSpecifier object called groupSpecifier. The group created with this object will
have multicast and posting enabled. The group will also have the server channel enabled.
var groupSpecifier = new GroupSpecifier("com.example.someapp");
groupSpecifier.multicastEnabled = true;
groupSpecifier.postingEnabled = true;
groupSpecifier.serverChannelEnabled = true;
GroupSpecifier.addBootstrapPeer()
groupSpecifier.addBootstrapPeer(peerID)
Causes the associated NetStream or NetGroup to make an initial neighbor connection to the specified peerID.
Availability
Flash Media Server 4
Parameters
peerID A String. The peerID to which an initial neighbor connection should be made to bootstrap into the peer-to-
peer mesh.
Returns
Nothing.
GroupSpecifier.addIPMulticastAddress()
groupSpecifier.addIPMulticastAddress(address, port)
Causes the associated NetStream or NetGroup to join the specified IP multicast group and listen to the specified UDP
port.
If the address or port has an invalid format, a runtime error is raised.
Availability
Flash Media Server 4
Parameters
address A String specifying the address of the IPv4 or IPv6 multicast group to join, optionally followed by a colon
(":") and the UDP port number. If specifying an IPv6 address and a port, the IPv6 address must be enclosed in square
brackets, for example,
"224.0.0.254", "224.0.0.254:30000", "ff03::ffff", "[ff03::ffff]:30000".
port A Number. The UDP port on which to receive IP multicast datagrams. If port is null, the UDP port must be
specified in address. If not null, the UDP port must not be specified in address.
Returns
Nothing.
GroupSpecifier.authorizations()
groupSpecifier.authorizations()
Przeglądanie stron 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag