Here is my problem :
I'm trying to connect to our SmartFox Server with the BlueBox.
It seems to work, but not completely.
My procedure is as following :
I connect to our SmartFox Server (which works perfectly with sockets) on a wrong port, to initiate a BlueBox connection.
Here is the log of my trace in Flex Builder :
Code: Select all
Socket connection failed. Trying BlueBox
[ Send ]: sfsHttp=connect
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='157' /></body></msg>
[ Send ]: sfsHttp=b5428fa317baccc9366050bb21e4ef3e%3Cmsg%20t%3D%27sys%27%3E%3Cbody%20action%3D%27verChk%27%20r%3D%270%27%3E%3Cver%20v%3D%27157%27%20%2F%3E%3C%2Fbody%3E%3C%2Fmsg%3E
And nothing else happens.
Locally, the procedure completes itself without a problem and I can be logged in the test zone, but remotely, nothing works.
The BlueBox is however correctly set up :
http://195.60.188.28:8080/BlueBox/HttpB ... ugCmd=main
The test code :
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import it.gotoandplay.smartfoxserver.SFSEvent;
import it.gotoandplay.smartfoxserver.SmartFoxClient;
private var sfsClient:SmartFoxClient;
private function onConnectResponse(e:SFSEvent):void {
sfsClient.login("NeoxirisChat", "", "");
}
private function onLoginResponse(e:SFSEvent):void {
}
private function onConnectionLost(e:SFSEvent):void {
}
]]>
</mx:Script>
<mx:VBox width="100%" height="100%" paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10">
<mx:Button label="Test">
<mx:click>
<![CDATA[
Security.loadPolicyFile("xmlsocket://195.60.188.28:8080");
sfsClient = new SmartFoxClient(true);
sfsClient.smartConnect = true;
sfsClient.blueBoxIpAddress = "195.60.188.28";
sfsClient.blueBoxPort = 8080;
sfsClient.httpPort = 80;
sfsClient.addEventListener(SFSEvent.onConnection, onConnectResponse);
sfsClient.addEventListener(SFSEvent.onLogin, onLoginResponse);
sfsClient.addEventListener(SFSEvent.onConnectionLost, onConnectionLost);
sfsClient.connect("195.60.188.28", 9338);
]]>
</mx:click>
</mx:Button>
</mx:VBox>
</mx:Application>
Tell me if you need any other information.
Best regards