File: NetGroup.hx

package info (click to toggle)
haxe 1%3A3.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,464 kB
  • ctags: 9,612
  • sloc: ml: 83,200; ansic: 1,724; makefile: 473; java: 349; cs: 314; python: 250; sh: 43; cpp: 39; xml: 25
file content (26 lines) | stat: -rw-r--r-- 1,371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package flash.net;

@:require(flash10_1) extern class NetGroup extends flash.events.EventDispatcher {
	var estimatedMemberCount(default,null) : Float;
	var info(default,null) : NetGroupInfo;
	var localCoverageFrom(default,null) : String;
	var localCoverageTo(default,null) : String;
	var neighborCount(default,null) : Float;
	var receiveMode : String;
	var replicationStrategy : String;
	function new(connection : NetConnection, groupspec : String) : Void;
	function addHaveObjects(startIndex : Float, endIndex : Float) : Void;
	function addMemberHint(peerID : String) : Bool;
	function addNeighbor(peerID : String) : Bool;
	function addWantObjects(startIndex : Float, endIndex : Float) : Void;
	function close() : Void;
	function convertPeerIDToGroupAddress(peerID : String) : String;
	function denyRequestedObject(requestID : Int) : Void;
	function post(message : flash.utils.Object) : String;
	function removeHaveObjects(startIndex : Float, endIndex : Float) : Void;
	function removeWantObjects(startIndex : Float, endIndex : Float) : Void;
	function sendToAllNeighbors(message : flash.utils.Object) : String;
	function sendToNearest(message : flash.utils.Object, groupAddress : String) : String;
	function sendToNeighbor(message : flash.utils.Object, sendMode : String) : String;
	function writeRequestedObject(requestID : Int, object : flash.utils.Object) : Void;
}