
107
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Returns
A Boolean value. If successful, returns true. Otherwise, returns false.
NetGroup.addNeighbor()
netGroup.addMemberHint(peerID)
Manually adds a neighbor by immediately connecting directly to the specified peerID, which must already be in this
Group. This direct connection may later be dropped if it is not needed for the topology.
Availability
Flash Media Server 4
Parameters
peerID A String. The peerID to which to connect.
Returns
A Boolean value. If successful, returns true. Otherwise, returns false.
NetGroup.addPermanentNeighborByName()
netGroup.addPermanentNeighborByName(rtmfpEndpointName:String, addresses:Array);
Manually adds a neighbor, by RTMFP endpoint name, which must already be in this group via a NetGroup instance
constructed using a NetConnection that has been assigned the target RTMFP endpoint name. Unlike
addNeighbor(),
this direct connection is permanent.
Throws an error if any argument is of the wrong type or missing, or if address values within the addresses argument
are incorrectly formatted.
Availability
Flash Media Server 4.5
Parameters
rtmfpEndpointName A String. The name assigned to the RTMFP protocol stack at the target peer. See
NetConnection.rtmfpEndpointName.
addresses An Array of address Strings specifying the IPv4 or IPv6 addresses where the target peer is running,
followed by a colon (":") and port number. If specifying an IPv6 address and a port, enclose the IPv6 address in square
brackets.
Returns
A Boolean value. If successful, returns true. Otherwise, returns false.
Example
The following example adds a neighbor with the RTMFP endpoint name bootstrap-peer, using a known address
where the peer is running:
ng.addPermanentNeighborByName("bootstrap-peer", [bootstrapPeerAddress]);
Comentarios a estos manuales