BlueBox for iOS

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: BlueBox for iOS

Post by Bax »

A new version of the API fixing the bug described above is available here: http://www.smartfoxserver.com/download/sfs2x#p=updates
Paolo Bax
The SmartFoxServer Team
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re: BlueBox for iOS

Post by mmilen »

Hi guys,

After updating to the latest iOS API (server is 2.3.0) I get this error right after an attempt failed to create socketed connection.
[__NSCFString encodeString:]: unrecognized selector sent to instance 0x1cd5c3c0
2012-10-26 08:04:31.342 iBridgeBaron[1168:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString encodeString:]: unrecognized selector sent to instance 0x1cd5c3c0'

THis is my connection config file

<SmartFoxConfig>
<ip>somevalidhostname</ip>
<port>9944</port>
<smartConnect>true</smartConnect>
<httpPort>8080</httpPort>
<httpPollSpeed>350</httpPollSpeed>
<zone>SocialBridgeTables</zone>
</SmartFoxConfig>

I switched back to the previous API and I do connect.
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: BlueBox for iOS

Post by A51Integrated »

Have you done a project clean?
A51 Integrated
http://a51integrated.com / +1 416-703-2300
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re: BlueBox for iOS

Post by mmilen »

Yes I have cleaned the project.
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re: BlueBox for iOS

Post by mmilen »

My project uses NSString category to add some common functionality needed through out. Is it possible there is conflict with it.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: BlueBox for iOS

Post by Bax »

mmilen,
please download the API package again and retry. It should be fixed now.
Paolo Bax
The SmartFoxServer Team
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re: BlueBox for iOS

Post by mmilen »

Worked like a charm :). Thank you very much. And the character bug seems to be fixed for good.

I have a question? How do I manage the HTTP timeout? Is it the same time out as the socketed connection?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: BlueBox for iOS

Post by Lapo »

What do you mean by HTTP timeout?
If you are referring to users being kicked because they're idle, yes the same value works in both scenarios.
Lapo
--
gotoAndPlay()
...addicted to flash games
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re: BlueBox for iOS

Post by mmilen »

Something is not right then. If the user does not send a packet in 5-6 seconds, and then try to send one the connection dissolves. There is no such issue with connections over socket.

My server settings are

Session maximum idle tile = 110
User maximum idle tile = 300

Zone settings

User reconnection time frame = 55
Overriddne user maximun timeout = 60

on my client side <httpPollSpeed>150</httpPollSpeed>
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: BlueBox for iOS

Post by Lapo »

I am not able to reproduce the problem.
I tested leaving the client idle for 30 seconds and then sending an ObjectMessage, it works as expected.

Is there any server side errors?
I also find it quite strange because technically it takes almost 20 seconds for the server to acknowledge an "HTTP disconnection", 5-6 seconds should really cause no harm.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re: BlueBox for iOS

Post by mmilen »

Here is debug output from the client. The last request is to get me a list of users from server.

2012-10-26 12:28:09.897 iBridgeBaron[1801:907] AppDelegate::onConfigLoadSuccess
2012-10-26 12:28:09.898 iBridgeBaron[1801:907] {
cfg = "[Host: oph2.greatgameproducts.com Port: 9944 Zone: SocialBridgeTables]";
}
2012-10-26 12:28:09.940 iBridgeBaron[1801:907] AppDelegate::onConnectionLost
2012-10-26 12:28:09.942 iBridgeBaron[1801:907] {
reason = unknown;
}
2012-10-26 12:28:09.943 iBridgeBaron[1801:907] [SFS - INFO][ BB-Send ]: sfsHttp=null%7Cconnect%7Cnull
2012-10-26 12:28:09.961 iBridgeBaron[1801:907] [SFS - INFO][ BB-Receive: connect|3196c3843bf1e8a5d9f26fadd4808e49 ]
2012-10-26 12:28:09.962 iBridgeBaron[1801:907] [SFS - INFO]sending handshake request: isReconnection : NO
2012-10-26 12:28:09.965 iBridgeBaron[1801:907] [SFS - INFO][ BB-Send ]: sfsHttp=3196c3843bf1e8a5d9f26fadd4808e49%7Cdata%7CgAA4EgADAAFjAgAAAWEDAAAAAXASAAIAA2FwaQgABTEuMS4yAAJjbAgAEElPUyB2ZXJzaW9uOiA2LjA%3D
2012-10-26 12:28:09.968 iBridgeBaron[1801:907] [SFS - INFO]Data Write: Binary Size: 59
80 00 38 12 00 03 00 01 63 02 00 00 01 61 03 00 ..8.....c....a..
00 00 01 70 12 00 02 00 03 61 70 69 08 00 05 31 ...p.....api...1
2e 31 2e 32 00 02 63 6c 08 00 10 49 4f 53 20 76 .1.2..cl...IOS.v
65 72 73 69 6f 6e 3a 20 36 2e 30 ersion:.6.0
2012-10-26 12:28:09.970 iBridgeBaron[1801:907] [SFS - INFO][ BB-Send ]: sfsHttp=3196c3843bf1e8a5d9f26fadd4808e49%7Cpoll%7Cnull
2012-10-26 12:28:10.016 iBridgeBaron[1801:907] [SFS - INFO][ BB-Receive: poll|gABNEgADAAFhAwAAAAFjAgAAAXASAAMAAnRrCAAgYjZlNTNkMGEzMWUxM2UxYTM0ZTdlMDU0YzQ3NmU3NDgAAmN0BAYagAAAAm1zBAB6EgA= ]
2012-10-26 12:28:10.021 iBridgeBaron[1801:907] [SFS - INFO]Data Read: Binary Size: 80
80 00 4d 12 00 03 00 01 61 03 00 00 00 01 63 02 ..M.....a.....c.
00 00 01 70 12 00 03 00 02 74 6b 08 00 20 62 36 ...p.....tk...b6
65 35 33 64 30 61 33 31 65 31 33 65 31 61 33 34 e53d0a31e13e1a34
65 37 65 30 35 34 63 34 37 36 65 37 34 38 00 02 e7e054c476e748..
63 74 04 06 1a 80 00 00 02 6d 73 04 00 7a 12 00 ct.......ms..z..
2012-10-26 12:28:10.023 iBridgeBaron[1801:907] [SFS - INFO]Handling Message: Handshake: { Message id: 0 }
{Dump: }

(int) ms: 8000000
(utf_string) tk: b6e53d0a31e13e1a34e7e054c476e748
(int) ct: 102400000
2012-10-26 12:28:10.024 iBridgeBaron[1801:907] AppDelegate::onConnection
2012-10-26 12:28:10.025 iBridgeBaron[1801:907] {
success = 1;
}
2012-10-26 12:28:10.720 iBridgeBaron[1801:907] [SFS - INFO][ BB-Send ]: sfsHttp=3196c3843bf1e8a5d9f26fadd4808e49%7Cpoll%7Cnull
2012-10-26 12:28:13.160 iBridgeBaron[1801:907] [SFS - INFO][ BB-Send ]: sfsHttp=3196c3843bf1e8a5d9f26fadd4808e49%7Cdata%7CgADYEgADAAFjAgAAAWEDAAEAAXASAAQAAnpuCAASU29jaWFsQnJpZGdlVGFibGVzAAJ1bggADFRoZWRldmVsb3BlcgABcBIABgAFbW9kZWwIAARpUGFkAANudXQIAAlpUGhvbmUgT1MAA2RpZAgAKDFkMTcwMGIyZTk3ZGQ1M2I1ZmYxNzMwZjIwMTg0MmU2NWZkNDEyZGYAA3JlcwgAATUAAXYEAAAADAADbnV2CAADNi4wAAJwdwgAIDJlYzE4OTNiMGVhMTMzNGQ3YjNlMmEwZjI4YzIzMjli
2012-10-26 12:28:13.169 iBridgeBaron[1801:907] [SFS - INFO]Data Write: Binary Size: 219
80 00 d8 12 00 03 00 01 63 02 00 00 01 61 03 00 ........c....a..
01 00 01 70 12 00 04 00 02 7a 6e 08 00 12 53 6f ...p.....zn...So
63 69 61 6c 42 72 69 64 67 65 54 61 62 6c 65 73 cialBridgeTables
00 02 75 6e 08 00 0c 54 68 65 64 65 76 65 6c 6f ..un...Thedevelo
70 65 72 00 01 70 12 00 06 00 05 6d 6f 64 65 6c per..p.....model
08 00 04 69 50 61 64 00 03 6e 75 74 08 00 09 69 ...iPad..nut...i
50 68 6f 6e 65 20 4f 53 00 03 64 69 64 08 00 28 Phone.OS..did..(
31 64 31 37 30 30 62 32 65 39 37 64 64 35 33 62 1d1700b2e97dd53b
35 66 66 31 37 33 30 66 32 30 31 38 34 32 65 36 5ff1730f201842e6
35 66 64 34 31 32 64 66 00 03 72 65 73 08 00 01 5fd412df..res...
35 00 01 76 04 00 00 00 0c 00 03 6e 75 76 08 00 5..v.......nuv..
03 36 2e 30 00 02 70 77 08 00 20 32 65 63 31 38 .6.0..pw...2ec18
39 33 62 30 65 61 31 33 33 34 64 37 62 33 65 32 93b0ea1334d7b3e2
61 30 66 32 38 63 32 33 32 39 62 a0f28c2329b
2012-10-26 12:28:13.304 iBridgeBaron[1801:907] [SFS - INFO][ BB-Receive: poll|gABeEgADAAFhAwABAAFjAgAAAXASAAYAAnJsEQAAAAJ6bggAElNvY2lhbEJyaWRnZVRhYmxlcwACcnMDADcAAnVuCAAMVGhlZGV2ZWxvcGVyAAJpZAQAAAACAAJwaQMAAA== ]
2012-10-26 12:28:13.308 iBridgeBaron[1801:907] [SFS - INFO]Data Read: Binary Size: 97
80 00 5e 12 00 03 00 01 61 03 00 01 00 01 63 02 ..^.....a.....c.
00 00 01 70 12 00 06 00 02 72 6c 11 00 00 00 02 ...p.....rl.....
7a 6e 08 00 12 53 6f 63 69 61 6c 42 72 69 64 67 zn...SocialBridg
65 54 61 62 6c 65 73 00 02 72 73 03 00 37 00 02 eTables..rs..7..
75 6e 08 00 0c 54 68 65 64 65 76 65 6c 6f 70 65 un...Thedevelope
72 00 02 69 64 04 00 00 00 02 00 02 70 69 03 00 r..id.......pi..
00 .
2012-10-26 12:28:13.311 iBridgeBaron[1801:907] [SFS - INFO]Handling Message: Login: { Message id: 1 }
{Dump: }

(short) rs: 55
(sfs_array) rl:


(utf_string) zn: SocialBridgeTables
(utf_string) un: Thedeveloper
(int) id: 2
(short) pi: 0
2012-10-26 12:28:13.313 iBridgeBaron[1801:907] AppDelegate::onLogin
2012-10-26 12:28:13.314 iBridgeBaron[1801:907] {
user = "[User: Thedeveloper, Id: 2, isMe: YES]";
zone = SocialBridgeTables;
}
2012-10-26 12:28:13.323 iBridgeBaron[1801:907] [SFS - INFO][ BB-Send ]: sfsHttp=3196c3843bf1e8a5d9f26fadd4808e49%7Cdata%7CgAAUEgADAAFjAgAAAWEDAMgAAXASAAA%3D
2012-10-26 12:28:13.326 iBridgeBaron[1801:907] [SFS - INFO]Data Write: Binary Size: 23
80 00 14 12 00 03 00 01 63 02 00 00 01 61 03 00 ........c....a..
c8 00 01 70 12 00 00 ...p...
2012-10-26 12:28:14.006 iBridgeBaron[1801:907] [SFS - INFO][ BB-Send ]: sfsHttp=3196c3843bf1e8a5d9f26fadd4808e49%7Cpoll%7Cnull
2012-10-26 12:28:14.047 iBridgeBaron[1801:907] [SFS - INFO][ BB-Receive: poll|gABaEgADAAFhAwAMAAFjAgAAAXASAAIAAXUEAAAAAgACdmwRAAURAAMIAAJubgIAABEAAwgAAml3AgAAEQADCAACaWwCAAARAAMIAAJydwIAABEAAwgAAnJsAgAAgACVEgADAAFhAwDIAAFjAgAAAXASAAMAAm12EQAFEQADCAANJF9fQlZfU1RBVEVfXwIECAAJQXZhaWxhYmxlEQADCAADJGlsAgAAEQADCAADJHJ3AgAAEQADCAADJGl3AgAAEQADCAADJHJsAgAAAAJicxAAAwAJQXZhaWxhYmxlAARBd2F5AAhPY2N1cGllZAACYmwRAAA= ]
2012-10-26 12:28:14.055 iBridgeBaron[1801:907] [SFS - INFO]Data Read: Binary Size: 245
80 00 5a 12 00 03 00 01 61 03 00 0c 00 01 63 02 ..Z.....a.....c.
00 00 01 70 12 00 02 00 01 75 04 00 00 00 02 00 ...p.....u......
02 76 6c 11 00 05 11 00 03 08 00 02 6e 6e 02 00 .vl.........nn..
00 11 00 03 08 00 02 69 77 02 00 00 11 00 03 08 .......iw.......
00 02 69 6c 02 00 00 11 00 03 08 00 02 72 77 02 ..il.........rw.
00 00 11 00 03 08 00 02 72 6c 02 00 00 80 00 95 ........rl......
12 00 03 00 01 61 03 00 c8 00 01 63 02 00 00 01 .....a.....c....
70 12 00 03 00 02 6d 76 11 00 05 11 00 03 08 00 p.....mv........
0d 24 5f 5f 42 56 5f 53 54 41 54 45 5f 5f 02 04 .$__BV_STATE__..
08 00 09 41 76 61 69 6c 61 62 6c 65 11 00 03 08 ...Available....
00 03 24 69 6c 02 00 00 11 00 03 08 00 03 24 72 ..$il.........$r
77 02 00 00 11 00 03 08 00 03 24 69 77 02 00 00 w.........$iw...
11 00 03 08 00 03 24 72 6c 02 00 00 00 02 62 73 ......$rl.....bs
10 00 03 00 09 41 76 61 69 6c 61 62 6c 65 00 04 .....Available..
41 77 61 79 00 08 4f 63 63 75 70 69 65 64 00 02 Away..Occupied..
62 6c 11 00 00 bl...
2012-10-26 12:28:14.061 iBridgeBaron[1801:907] [SFS - INFO]Handling Message: SetUserVariables: { Message id: 12 }
{Dump: }

(int) u: 2
(sfs_array) vl:
(sfs_array)
(utf_string)nn
(byte)0
(null)(null)

(sfs_array)
(utf_string)iw
(byte)0
(null)(null)

(sfs_array)
(utf_string)il
(byte)0
(null)(null)

(sfs_array)
(utf_string)rw
(byte)0
(null)(null)

(sfs_array)
(utf_string)rl
(byte)0
(null)(null)


2012-10-26 12:28:14.067 iBridgeBaron[1801:907] [SFS - INFO]Handling Message: InitBuddyList: { Message id: 200 }
{Dump: }

(sfs_array) bl:


(sfs_array) mv:
(sfs_array)
(utf_string)$__BV_STATE__
(byte)4
(utf_string)Available

(sfs_array)
(utf_string)$il
(byte)0
(null)(null)

(sfs_array)
(utf_string)$rw
(byte)0
(null)(null)

(sfs_array)
(utf_string)$iw
(byte)0
(null)(null)

(sfs_array)
(utf_string)$rl
(byte)0
(null)(null)


(utf_string_array) bs: [(
Available,
Away,
Occupied
)]
2012-10-26 12:28:14.069 iBridgeBaron[1801:907] AppDelegate::onBuddyListInit
2012-10-26 12:28:14.070 iBridgeBaron[1801:907] {
buddyList = (
);
myVariables = (
"[BuddyVar: $rl, type: Null, value: (null)]",
"[BuddyVar: $il, type: Null, value: (null)]",
"[BuddyVar: $__BV_STATE__, type: String, value: Available]",
"[BuddyVar: $rw, type: Null, value: (null)]",
"[BuddyVar: $iw, type: Null, value: (null)]"
);
}
2012-10-26 12:28:14.753 iBridgeBaron[1801:907] [SFS - INFO][ BB-Send ]: sfsHttp=3196c3843bf1e8a5d9f26fadd4808e49%7Cpoll%7Cnull
2012-10-26 12:28:29.665 iBridgeBaron[1801:907] [SFS - INFO][ BB-Send ]: sfsHttp=3196c3843bf1e8a5d9f26fadd4808e49%7Cdata%7CgAA5EgADAAFjAgAAAWEDABwAAXASAAIAAWURAAERAAUACAACbm4CAggACGNvbnRhaW5zCAAAAAFsAwAo
2012-10-26 12:28:29.669 iBridgeBaron[1801:907] [SFS - INFO]Data Write: Binary Size: 60
80 00 39 12 00 03 00 01 63 02 00 00 01 61 03 00 ..9.....c....a..
1c 00 01 70 12 00 02 00 01 65 11 00 01 11 00 05 ...p.....e......
00 08 00 02 6e 6e 02 02 08 00 08 63 6f 6e 74 61 ....nn.....conta
69 6e 73 08 00 00 00 01 6c 03 00 28 ins.....l..(



Here is the server log:

12:28:09,233 INFO [1335930@qtp-8079107-5] sessions.DefaultSessionManager - Session created: { Id: 4, Type: BLUEBOX, Logged: No, IP: null } on Server port: 0 <---> 0
12:28:12,574 INFO [pool-1-thread-4] api.SFSApi - User login: { Zone: SocialBridgeTables }, ( User Name: Thedeveloper, Id: 2, Priv: 0, Sess: 173.177.46.222 ) , Type: IOS version: 6.0
12:28:41,904 INFO [pool-2-thread-3] sessions.DefaultSessionManager - Session removed: { Id: 4, Type: BLUEBOX, Logged: Yes, IP: 173.177.46.222 }
12:28:41,905 INFO [pool-2-thread-3] entities.SFSZone - User: Thedeveloper was disconnected.
12:28:41,906 INFO [pool-2-thread-3] api.SFSApi - User disconnected: { Zone: SocialBridgeTables }, ( User Name: Thedeveloper, Id: 2, Priv: 2, Sess: 173.177.46.222 ) , Type: IOS version: 6.0, SessionLen: 29332

Can you sent me your configuration files for the Jetty server and other related configuration files. I do you the defaults from the installer.
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re: BlueBox for iOS

Post by mmilen »

Here is server debug output of a session. This is clean server install patched to 2.3.0

*************************************************
[root@cl-t152-470cl SFS2X]# ./sfs2x.sh start
12:35:34,907 INFO [main] v2.SmartFoxServer - Boot sequence starts...
12:35:34,919 INFO [main] v2.SmartFoxServer -
_____ _____ _____ ___ __ __ _____ _____ _____ _____
| __| __| __| |_ | | | | __ | | |_ _|
|__ | __|__ | | _|- -| | __ -| | | | | | |
|_____|__| |_____| |___|__|__| |_____|_____|_____| |_|

12:35:35,577 INFO [main] v2.SmartFoxServer - License code not found, starting Community Edition license
12:35:35,577 INFO [main] core.SFSEventManager - AnonymousService-1 initalized
12:35:35,615 INFO [main] impl.DefaultFileReplicator - Using "/tmp/vfs_cache" as temporary files store.
12:35:35,662 DEBUG [main] impl.StandardFileSystemManager - Skipping provider "org.apache.commons.vfs.provider.ftp.FtpFileProvider" because required class "org.apache.commons.net.ftp.FTPFile" is not available.
12:35:35,663 DEBUG [main] impl.StandardFileSystemManager - Skipping provider "org.apache.commons.vfs.provider.http.HttpFileProvider" because required class "org.apache.commons.httpclient.HttpClient" is not available.
12:35:35,663 DEBUG [main] impl.StandardFileSystemManager - Skipping provider "org.apache.commons.vfs.provider.https.HttpsFileProvider" because required class "org.apache.commons.httpclient.HttpClient" is not available.
12:35:35,664 DEBUG [main] impl.StandardFileSystemManager - Skipping provider "org.apache.commons.vfs.provider.sftp.SftpFileProvider" because required class "com.jcraft.jsch.JSch" is not available.
12:35:35,688 DEBUG [main] cache.SoftRefFilesCache - putFile: file:///opt/SmartFoxServer2X/SFS2X/extensions
12:35:35,692 DEBUG [main] cache.SoftRefFilesCache - putFile: file:///opt/SmartFoxServer2X/SFS2X/extensions/BridgeServer
12:35:35,692 DEBUG [main] cache.SoftRefFilesCache - putFile: file:///opt/SmartFoxServer2X/SFS2X/extensions/__lib__
12:35:35,695 DEBUG [main] cache.SoftRefFilesCache - putFile: file:///opt/SmartFoxServer2X/SFS2X/extensions/BridgeServer/SocialBridgeServerExtension.jar
12:35:35,697 DEBUG [main] managers.SFSExtensionManager - Extension Manager started.
12:35:35,699 INFO [main] v2.SmartFoxServer - License loaded:

===================================
LICENSE DETAILS
-----------------------------------
Type : Community Edition
Max users : 100
===================================

12:35:35,701 INFO [main] managers.SFSBannedUserStorage - BanUserStorage initialized
12:35:35,716 INFO [main] managers.SFSBannedUserManager - BanUser data loaded: 0 records.
12:35:35,717 DEBUG [main] managers.SFSExtensionManager - Extension File Monitor started
12:35:35,725 INFO [main] v2.SmartFoxServer - Protocol Type is: BINARY
12:35:35,728 INFO [main] config.SFSConfigurator - Loading: zones/SocialBridgeTables.zone.xml
12:35:35,765 INFO [main] managers.SFSZoneManager -

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
>> Zone: SocialBridgeTables
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

12:35:35,936 DEBUG [main] db.SFSDBManager - ExecuteQuery SQL: select now()
12:35:35,987 DEBUG [pool-2-thread-3] managers.SFSZoneManager$TrafficMeterExecutor - Traffic Monitor update: 0.088599ms.
12:35:35,989 DEBUG [main] Extensions - {Admin}: Admin Extension started
12:35:35,994 INFO [main] managers.SFSRoomManager - Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 0, Group: default, isGame: false ]
12:35:36,004 INFO [main] core.AdminToolService - AdminTool Service started
12:35:37,262 INFO [main] http.SFSHttpServer - Http Server started.
12:35:37,299 INFO [main] v2.SmartFoxServer - Listening Sockets: { 184.107.58.250:9933, (Tcp) }
12:35:37,299 INFO [main] v2.SmartFoxServer -
_____ _____ _____ ___ __ __
| __| __| __| |_ | | |
|__ | __|__ | | _|- -|
|_____|__| |_____| |___|__|__|
_____ _____ _____ ____ __ __
| __ | __| _ | \| | |
| -| __| | | |_ _|
|__|__|_____|__|__|____/ |_|
[ 2.3.0 ]

12:35:37,302 INFO [main] v2.SmartFoxServer - SmartFoxServer 2X (2.3.0) READY!
12:35:44,384 INFO [10163824@qtp-25515818-7] sessions.DefaultSessionManager - Session created: { Id: 1, Type: BLUEBOX, Logged: No, IP: null } on Server port: 0 <---> 0
12:35:44,411 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - Binary size: 59
80 00 38 12 00 03 00 01 63 02 00 00 01 61 03 00 ..8.....c....a..
00 00 01 70 12 00 02 00 03 61 70 69 08 00 05 31 ...p.....api...1
2E 31 2E 32 00 02 63 6C 08 00 10 49 4F 53 20 76 .1.2..cl...IOS.v
65 72 73 69 6F 6E 3A 20 36 2E 30 ersion:.6.0

12:35:44,411 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - STATE: WAIT_NEW_PACKET
12:35:44,412 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - NORMAL SIZED PACKET: 56
12:35:44,413 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - <<< PACKET COMPLETE >>>
12:35:44,416 DEBUG [10163824@qtp-25515818-7] protocol.SFSProtocolCodec -
(short) a: 0
(byte) c: 0
(sfs_object) p:
(utf_string) cl: IOS version: 6.0
(utf_string) api: 1.1.2




12:35:44,418 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] controllers.SystemController - {IN}: Handshake
12:35:44,423 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] protocol.SFSProtocolCodec - {OUT}: Handshake
12:35:44,424 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] binary.BinaryIoHandler - Binary size: 80
80 00 4D 12 00 03 00 01 61 03 00 00 00 01 63 02 ..M.....a.....c.
00 00 01 70 12 00 03 00 02 74 6B 08 00 20 64 61 ...p.....tk...da
61 38 33 66 38 31 34 64 66 37 38 66 64 30 30 61 a83f814df78fd00a
35 66 35 32 32 66 32 65 62 63 64 64 35 34 00 02 5f522f2ebcdd54..
63 74 04 06 1A 80 00 00 02 6D 73 04 00 7A 12 00 ct.......ms..z..

12:35:56,211 INFO [19161779@qtp-25515818-6] sessions.DefaultSessionManager - Session created: { Id: 2, Type: BLUEBOX, Logged: No, IP: null } on Server port: 0 <---> 0
12:35:56,237 DEBUG [19161779@qtp-25515818-6] binary.BinaryIoHandler - Binary size: 59
80 00 38 12 00 03 00 01 63 02 00 00 01 61 03 00 ..8.....c....a..
00 00 01 70 12 00 02 00 03 61 70 69 08 00 05 31 ...p.....api...1
2E 31 2E 32 00 02 63 6C 08 00 10 49 4F 53 20 76 .1.2..cl...IOS.v
65 72 73 69 6F 6E 3A 20 36 2E 30 ersion:.6.0

12:35:56,237 DEBUG [19161779@qtp-25515818-6] binary.BinaryIoHandler - STATE: WAIT_NEW_PACKET
12:35:56,237 DEBUG [19161779@qtp-25515818-6] binary.BinaryIoHandler - NORMAL SIZED PACKET: 56
12:35:56,238 DEBUG [19161779@qtp-25515818-6] binary.BinaryIoHandler - <<< PACKET COMPLETE >>>
12:35:56,238 DEBUG [19161779@qtp-25515818-6] protocol.SFSProtocolCodec -
(short) a: 0
(byte) c: 0
(sfs_object) p:
(utf_string) cl: IOS version: 6.0
(utf_string) api: 1.1.2




12:35:56,238 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] controllers.SystemController - {IN}: Handshake
12:35:56,239 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] protocol.SFSProtocolCodec - {OUT}: Handshake
12:35:56,239 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] binary.BinaryIoHandler - Binary size: 80
80 00 4D 12 00 03 00 01 61 03 00 00 00 01 63 02 ..M.....a.....c.
00 00 01 70 12 00 03 00 02 74 6B 08 00 20 38 62 ...p.....tk...8b
65 64 32 30 34 39 38 30 32 32 30 32 62 35 66 65 ed2049802202b5fe
65 34 34 35 34 64 38 63 36 31 33 36 34 62 00 02 e4454d8c61364b..
63 74 04 06 1A 80 00 00 02 6D 73 04 00 7A 12 00 ct.......ms..z..

12:35:59,601 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - Binary size: 219
80 00 D8 12 00 03 00 01 63 02 00 00 01 61 03 00 ........c....a..
01 00 01 70 12 00 04 00 02 7A 6E 08 00 12 53 6F ...p.....zn...So
63 69 61 6C 42 72 69 64 67 65 54 61 62 6C 65 73 cialBridgeTables
00 02 75 6E 08 00 0C 54 68 65 64 65 76 65 6C 6F ..un...Thedevelo
70 65 72 00 01 70 12 00 06 00 05 6D 6F 64 65 6C per..p.....model
08 00 04 69 50 61 64 00 03 6E 75 74 08 00 09 69 ...iPad..nut...i
50 68 6F 6E 65 20 4F 53 00 03 64 69 64 08 00 28 Phone.OS..did..(
31 64 31 37 30 30 62 32 65 39 37 64 64 35 33 62 1d1700b2e97dd53b
35 66 66 31 37 33 30 66 32 30 31 38 34 32 65 36 5ff1730f201842e6
35 66 64 34 31 32 64 66 00 03 72 65 73 08 00 01 5fd412df..res...
35 00 01 76 04 00 00 00 0C 00 03 6E 75 76 08 00 5..v.......nuv..
03 36 2E 30 00 02 70 77 08 00 20 61 65 39 62 38 .6.0..pw...ae9b8
34 31 31 34 66 39 39 62 61 65 39 37 36 33 39 35 4114f99bae976395
63 63 65 62 32 66 38 37 33 36 66 cceb2f8736f

12:35:59,602 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - STATE: WAIT_NEW_PACKET
12:35:59,602 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - NORMAL SIZED PACKET: 216
12:35:59,602 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - <<< PACKET COMPLETE >>>
12:35:59,603 DEBUG [10163824@qtp-25515818-7] protocol.SFSProtocolCodec -
(short) a: 1
(byte) c: 0
(sfs_object) p:
(utf_string) zn: SocialBridgeTables
(utf_string) un: Thedeveloper
(utf_string) pw: ae9b84114f99bae976395cceb2f8736f
(sfs_object) p:
(utf_string) res: 5
(utf_string) did: 1d1700b2e97dd53b5ff1730f201842e65fd412df
(int) v: 12
(utf_string) nuv: 6.0
(utf_string) model: iPad
(utf_string) nut: iPhone OS






12:35:59,603 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] controllers.SystemController - {IN}: Login
12:35:59,738 INFO [pool-1-thread-3] api.SFSApi - User login: { Zone: SocialBridgeTables }, ( User Name: Thedeveloper, Id: 0, Priv: 0, Sess: 173.177.46.222 ) , Type: IOS version: 6.0
12:35:59,739 DEBUG [pool-1-thread-3] protocol.SFSProtocolCodec - {OUT}: Login
12:35:59,739 DEBUG [pool-1-thread-3] binary.BinaryIoHandler - Binary size: 97
80 00 5E 12 00 03 00 01 61 03 00 01 00 01 63 02 ..^.....a.....c.
00 00 01 70 12 00 06 00 02 72 6C 11 00 00 00 02 ...p.....rl.....
7A 6E 08 00 12 53 6F 63 69 61 6C 42 72 69 64 67 zn...SocialBridg
65 54 61 62 6C 65 73 00 02 72 73 03 00 37 00 02 eTables..rs..7..
75 6E 08 00 0C 54 68 65 64 65 76 65 6C 6F 70 65 un...Thedevelope
72 00 02 69 64 04 00 00 00 00 00 02 70 69 03 00 r..id.......pi..
00 .

12:35:59,742 DEBUG [pool-1-thread-4] entities.SFSUser - UserVar removed: nn, ( User Name: Thedeveloper, Id: 0, Priv: 2, Sess: 173.177.46.222 )
12:35:59,743 DEBUG [pool-1-thread-4] entities.SFSUser - UserVar removed: iw, ( User Name: Thedeveloper, Id: 0, Priv: 2, Sess: 173.177.46.222 )
12:35:59,743 DEBUG [pool-1-thread-4] entities.SFSUser - UserVar removed: il, ( User Name: Thedeveloper, Id: 0, Priv: 2, Sess: 173.177.46.222 )
12:35:59,743 DEBUG [pool-1-thread-4] entities.SFSUser - UserVar removed: rw, ( User Name: Thedeveloper, Id: 0, Priv: 2, Sess: 173.177.46.222 )
12:35:59,744 DEBUG [pool-1-thread-4] entities.SFSUser - UserVar removed: rl, ( User Name: Thedeveloper, Id: 0, Priv: 2, Sess: 173.177.46.222 )
12:35:59,744 DEBUG [pool-1-thread-4] protocol.SFSProtocolCodec - {OUT}: SetUserVariables
12:35:59,745 DEBUG [pool-1-thread-4] binary.BinaryIoHandler - Binary size: 93
80 00 5A 12 00 03 00 01 61 03 00 0C 00 01 63 02 ..Z.....a.....c.
00 00 01 70 12 00 02 00 01 75 04 00 00 00 00 00 ...p.....u......
02 76 6C 11 00 05 11 00 03 08 00 02 6E 6E 02 00 .vl.........nn..
00 11 00 03 08 00 02 69 77 02 00 00 11 00 03 08 .......iw.......
00 02 69 6C 02 00 00 11 00 03 08 00 02 72 77 02 ..il.........rw.
00 00 11 00 03 08 00 02 72 6C 02 00 00 ........rl...

12:35:59,781 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - Binary size: 23
80 00 14 12 00 03 00 01 63 02 00 00 01 61 03 00 ........c....a..
C8 00 01 70 12 00 00 ...p...

12:35:59,781 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - STATE: WAIT_NEW_PACKET
12:35:59,781 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - NORMAL SIZED PACKET: 20
12:35:59,781 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - <<< PACKET COMPLETE >>>
12:35:59,781 DEBUG [10163824@qtp-25515818-7] protocol.SFSProtocolCodec -
(short) a: 200
(byte) c: 0
(sfs_object) p:




12:35:59,782 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] controllers.SystemController - {IN}: InitBuddyList
12:35:59,784 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] buddylist.SFSBuddyListManager - BuddyList inited: [Owner: Thedeveloper, Size: 0 List: {} ]
12:35:59,785 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] protocol.SFSProtocolCodec - {OUT}: InitBuddyList
12:35:59,785 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] binary.BinaryIoHandler - Binary size: 152
80 00 95 12 00 03 00 01 61 03 00 C8 00 01 63 02 ........a.....c.
00 00 01 70 12 00 03 00 02 6D 76 11 00 05 11 00 ...p.....mv.....
03 08 00 0D 24 5F 5F 42 56 5F 53 54 41 54 45 5F ....$__BV_STATE_
5F 02 04 08 00 09 41 76 61 69 6C 61 62 6C 65 11 _.....Available.
00 03 08 00 03 24 69 6C 02 00 00 11 00 03 08 00 .....$il........
03 24 72 77 02 00 00 11 00 03 08 00 03 24 69 77 .$rw.........$iw
02 00 00 11 00 03 08 00 03 24 72 6C 02 00 00 00 .........$rl....
02 62 73 10 00 03 00 09 41 76 61 69 6C 61 62 6C .bs.....Availabl
65 00 04 41 77 61 79 00 08 4F 63 63 75 70 69 65 e..Away..Occupie
64 00 02 62 6C 11 00 00 d..bl...

12:36:03,589 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - Binary size: 60
80 00 39 12 00 03 00 01 63 02 00 00 01 61 03 00 ..9.....c....a..
1C 00 01 70 12 00 02 00 01 65 11 00 01 11 00 05 ...p.....e......
00 08 00 02 6E 6E 02 02 08 00 08 63 6F 6E 74 61 ....nn.....conta
69 6E 73 08 00 00 00 01 6C 03 00 28 ins.....l..(

12:36:03,589 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - STATE: WAIT_NEW_PACKET
12:36:03,589 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - NORMAL SIZED PACKET: 57
12:36:03,590 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - <<< PACKET COMPLETE >>>
12:36:03,590 DEBUG [10163824@qtp-25515818-7] protocol.SFSProtocolCodec -
(short) a: 28
(byte) c: 0
(sfs_object) p:
(short) l: 40
(sfs_array) e:
(sfs_array)
(null) null
(utf_string) nn
(byte) 2
(utf_string) contains
(utf_string)






12:36:03,590 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] controllers.SystemController - {IN}: FindUsers
12:36:03,594 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] protocol.SFSProtocolCodec - {OUT}: FindUsers
12:36:03,595 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] binary.BinaryIoHandler - Binary size: 30
80 00 1B 12 00 03 00 01 61 03 00 1C 00 01 63 02 ........a.....c.
00 00 01 70 12 00 01 00 02 66 75 11 00 00 ...p.....fu...

12:36:12,223 INFO [pool-2-thread-1] sessions.DefaultSessionManager - Session removed: { Id: 1, Type: BLUEBOX, Logged: No, IP: 173.177.46.222 }
12:36:12,223 DEBUG [pool-2-thread-1] v2.SmartFoxServer - [( User Name: Thedeveloper, Id: 0, Priv: 2, Sess: 173.177.46.222 ) ]
12:36:32,223 INFO [pool-2-thread-3] sessions.DefaultSessionManager - Session removed: { Id: 2, Type: BLUEBOX, Logged: Yes, IP: 173.177.46.222 }
12:36:32,224 INFO [pool-2-thread-3] entities.SFSZone - User: Thedeveloper was disconnected.
12:36:32,225 INFO [pool-2-thread-3] api.SFSApi - User disconnected: { Zone: SocialBridgeTables }, ( User Name: Thedeveloper, Id: 0, Priv: 2, Sess: 173.177.46.222 ) , Type: IOS version: 6.0, SessionLen: 32489
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re: BlueBox for iOS

Post by mmilen »

Here is one server log when I have KeepAlive call enable on the client side and it is fire every second.


12:45:10,122 DEBUG [com.smartfoxserver.v2.controllers.ExtensionController-2] controllers.ExtensionController - Extension call executed in: 0.222998
12:45:11,115 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - Binary size: 51
80 00 30 12 00 03 00 01 63 02 01 00 01 61 03 00 ..0.....c....a..
0D 00 01 70 12 00 03 00 01 63 08 00 02 6B 61 00 ...p.....c...ka.
01 72 04 FF FF FF FF 00 01 70 12 00 01 00 02 6B .r.......p.....k
61 01 01 a..

12:45:11,115 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - STATE: WAIT_NEW_PACKET
12:45:11,115 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - NORMAL SIZED PACKET: 48
12:45:11,115 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - <<< PACKET COMPLETE >>>
12:45:11,116 DEBUG [10163824@qtp-25515818-7] protocol.SFSProtocolCodec -
(short) a: 13
(byte) c: 1
(sfs_object) p:
(int) r: -1
(utf_string) c: ka
(sfs_object) p:
(bool) ka: true



12:45:11,116 DEBUG [com.smartfoxserver.v2.controllers.ExtensionController-3] controllers.ExtensionController - [Req Type: (Tcp), Prt: { NORMAL }, Sender: { Id: 3, Type: BLUEBOX, Logged: Yes, IP: 173.177.46.222 }]
12:45:11,117 DEBUG [com.smartfoxserver.v2.controllers.ExtensionController-3] controllers.ExtensionController -
(int) r: -1
(utf_string) c: ka
(sfs_object) p:
(bool) ka: true




12:45:11,117 DEBUG [com.smartfoxserver.v2.controllers.ExtensionController-3] controllers.ExtensionController - Extension call executed in: 0.226167
12:45:12,132 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - Binary size: 51
80 00 30 12 00 03 00 01 63 02 01 00 01 61 03 00 ..0.....c....a..
0D 00 01 70 12 00 03 00 01 63 08 00 02 6B 61 00 ...p.....c...ka.
01 72 04 FF FF FF FF 00 01 70 12 00 01 00 02 6B .r.......p.....k
61 01 01 a..

12:45:12,132 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - STATE: WAIT_NEW_PACKET
12:45:12,132 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - NORMAL SIZED PACKET: 48
12:45:12,133 DEBUG [10163824@qtp-25515818-7] binary.BinaryIoHandler - <<< PACKET COMPLETE >>>
12:45:12,133 DEBUG [10163824@qtp-25515818-7] protocol.SFSProtocolCodec -
(short) a: 13
(byte) c: 1
(sfs_object) p:
(int) r: -1
(utf_string) c: ka
(sfs_object) p:
(bool) ka: true






12:45:12,134 DEBUG [com.smartfoxserver.v2.controllers.ExtensionController-1] controllers.ExtensionController - [Req Type: (Tcp), Prt: { NORMAL }, Sender: { Id: 3, Type: BLUEBOX, Logged: Yes, IP: 173.177.46.222 }]
12:45:12,134 DEBUG [com.smartfoxserver.v2.controllers.ExtensionController-1] controllers.ExtensionController -
(int) r: -1
(utf_string) c: ka
(sfs_object) p:
(bool) ka: true




12:45:12,134 DEBUG [com.smartfoxserver.v2.controllers.ExtensionController-1] controllers.ExtensionController - Extension call executed in: 0.197213
12:45:12,223 INFO [pool-2-thread-1] sessions.DefaultSessionManager - Session removed: { Id: 3, Type: BLUEBOX, Logged: Yes, IP: 173.177.46.222 }
12:45:12,224 INFO [pool-2-thread-1] entities.SFSZone - User: Thedeveloper was disconnected.
12:45:12,224 INFO [pool-2-thread-1] api.SFSApi - User disconnected: { Zone: SocialBridgeTables }, ( User Name: Thedeveloper, Id: 1, Priv: 2, Sess: 173.177.46.222 ) , Type: IOS version: 6.0, SessionLen: 31411
mmilen
Posts: 311
Joined: 09 Nov 2010, 00:48
Contact:

Re: BlueBox for iOS

Post by mmilen »

Strange error message when trying to reconnect.

errorMessage = "Error Domain=NSURLErrorDomain Code=-1004 \"Could not connect to the server.\" UserInfo=0xe801650 {NSErrorFailingURLStringKey=http://oph3.greatgameproducts.com:9944/BlueBox/BlueBox.do, NSErrorFailingURLKey=http://oph3.greatgameproducts.com:9944/BlueBox/BlueBox.do, NSLocalizedDescription=Could not connect to the server., NSUnderlyingError=0xe801730 \"Could not connect to the server.\"}";

Looks like it tries to reconnect on port 9944 when it should be using 8080.

Here is my config file
<SmartFoxConfig>
<ip>oph3.greatgameproducts.com</ip>
<port>9944</port>
<zone>SocialBridgeTables</zone>

<debug>true</debug>

<httpPort>8080</httpPort>
<useBlueBox>true</useBlueBox>
<blueBoxPollingRate>500</blueBoxPollingRate>
</SmartFoxConfig>
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: BlueBox for iOS

Post by Lapo »

If you are assuming that the reconnection system will work when connected via HTTP/BlueBox, I am sorry it won't.
Reconnection system is available only for socket clients.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply