devboy / hydrap2p Goto Github PK
View Code? Open in Web Editor NEWHydraP2P is an ActionScript 3 library aiming to simplify the peer-to-peer API introduced in Flash Player 10.1
Home Page: devboy.org
HydraP2P is an ActionScript 3 library aiming to simplify the peer-to-peer API introduced in Flash Player 10.1
Home Page: devboy.org
Make it possible to activate or deactivate the receiveing of the filedata in a FileChannel.
Many thanks for giving away this great library – it really serves as a fantastic starting point!
I notice a mention of an issue with Hydra’s error handling here:
http://forums.adobe.com/thread/824327?tstart=0
especially in light of the fp bug and what is sometimes needed to actually allow a site to use P2P (http://www.flashrealtime.com/resolving-netgroupconnectrejected-or-when-your-flash-p2p-apps-stop-working/)
I made a very small edit in the HydraChannel class around line 161.. i reordered the top of the switch statement and separated the handling of rejected/failed and success:
private function netStatus(event : NetStatusEvent) : void
{
var infoCode : String = event.info.code;
switch (infoCode)
{
case NetStatusCodes.NETGROUP_CONNECT_REJECTED:
case NetStatusCodes.NETGROUP_CONNECT_FAILED:
trace(‘CONNECTION ERROR: ‘+infoCode);
break;
case NetStatusCodes.NETGROUP_CONNECT_SUCCESS:
if (event.info.group && event.info.group == _netGroup)
{
does this make sense?
Implement functionality to send and receive messages and commands to a specified peer.
Write unit-tests and add test-suite to the project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.