I have the daemon able to login to the admin zone and, and I can request the roomlist successfully, however on any subsequent messages sent, the connection seems to be dropped and the onConnectionLost event fires.
Any ideas why this would cause the connection to be lost?
Code looks like:
Code: Select all
private void RequestServerStatus(Socket client)
{
SmartFoxClient smartFox = new SmartFoxClient();
RemoteCallHandler handler = new RemoteCallHandler(client, smartFox);
Connect(smartFox, handler);
Login(smartFox, handler, "$dmn", "$_$sfs_admin", "sfs_pass");
GetRoomList(smartFox, handler);
SFSEvent.onJoinRoom += handler.OnJoinRoom;
SFSEvent.onJoinRoomError += handler.OnJoinRoomError;
smartFox.AutoJoin();
SFSEvent.onExtensionResponse += handler.OnExtensionResponse;
smartFox.SendXtMessage("$dmn", "zoneInfo", null);
handler.loginEvent.WaitOne();
client.SendEncodedString(Encoding.ASCII, "ret::status");
}