actionscript 3 - C++ server doesn't recognize AS3 socket -


well, 3 questions in less 24 hours.but suppose lack of helpful documentation (that can find anyway) gives me no choice.

now know security stuff adobes got going, policy file deal , sandbox limitations have juggled around. ive done suggested options changes, allowing network access in as3 project. got server ready spit policy file out instantly upon connection; problem flash/as3 whatever wanna call doesn't see server (or other way around)

as3 delays few seconds, documentation if struggling make connection/find policy file, never makes connection period, tries while , gives , spits me access error (because didn't find policy file assumes not allowed on network mad @ me trying... lil stubborn buggers)

flash never gets looking for, , server never detects connections (failed or succeeded, nothing) know server because i've tested test client wrote in c++ , talk best friends.

so i'm pretty , loss ideas now, thought re-creating winsock classes in as3, don't know how connect() function fro winsock works; got declaration, no definition can find.

i not sure need source code, there's on thousand lines in client alone posting isn't option. ill give here think relevant @ least.

function hwndenterframe(e:event):void         {             //trace("frame entered");              if (firstframe)                 {                     trace("try reconcile policy file...");                     //security.loadpolicyfile("192.168.1.2:843");                     tsocket = new socket("192.168.1.2",843);//must call flush() send data***                      firstframe = false;                 } 

the security.loadpolicyfile doesnt seem far ive noticed, same msgs or without it, code seems looking policy file @ location specified in socket declaration. compiles fine, ain't doing want :p else seems writing servers in perl or python haven't found of abundance of c++ material, although understand tcp universal connection across platform supports (can cross-language without funny-business)

meh, got now, if want other parts of code (client or sever side, whatever want) ill stick here quick-like.

edit:

i found swf online downloaded, connected fine example server came (but server written in c sparp not use me) wont connect server. known flash client wont connect c++ server, c++ client connect c++ server. somthing on server side, becuase dosnt hear connection whatsoever flash apps (mine or expamle one)

cheers; -tyler

i figured out. needed allowdomian(ipofserver). thought had tried apparently not.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -