Search found 68 matches

by COB
18 Aug 2011, 18:49
Forum: SFS2X C# API
Topic: Server Reconnection Issues
Replies: 2
Views: 6249

I noticed similar thing and this problem was described also here: http://www.smartfoxserver.com/forums/viewtopic.php?t=11505&highlight= and here by me in discussion about reconnection mechanism (however, I also tried to make manual reconnection mechanism). http://www.smartfoxserver.com/forums/vi...
by COB
18 Aug 2011, 18:39
Forum: SFS2X C# API
Topic: Clearing user variable
Replies: 8
Views: 12815

When this fix will be implemented? I had to do add lot of not pretty code to my app and set variables to "", because of this. By the way, I have a question. What should happen when user leaves server - will user variable change event be fired? In fact, there is a change because they are cl...
by COB
08 Aug 2011, 06:19
Forum: SFS2X C# API
Topic: Auto reconnection mechanism problem
Replies: 14
Views: 31614

Ok, I will try this way. However, what does exactly "User reconnection timeframe" mean in zone configuration? How this setting works? I'm also trying to make manual reconnection mechanism and try to reestablish manually the connection, but after I'm disconnected, calling smartFoxClient.Con...
by COB
05 Aug 2011, 09:38
Forum: SFS2X C# API
Topic: Auto reconnection mechanism problem
Replies: 14
Views: 31614

I use it only for tests. I thought that this function shall be used for the SFS reconnection mechanism tests. As you can see it kills the connection and it is even reestablished, but then API does not behave properly. So, how should I test this mechanism? My second question is how many times SFS att...
by COB
02 Aug 2011, 07:14
Forum: SFS2X C# API
Topic: Auto reconnection mechanism problem
Replies: 14
Views: 31614

Here are some logs from my console. As you can see I put some logs before I am sending any data to server. I also display SFS client property IsConnected each time. Then I use KillConnection() method, and after that you can see OnConnectionRetry and OnConnectionResume. For a while SFS is not connect...
by COB
29 Jul 2011, 04:45
Forum: SFS2X C# API
Topic: Auto reconnection mechanism problem
Replies: 14
Views: 31614

I have for example such method: // Send transform to all other users public void DoSend() { SmartFox client = NetworkController.GetClient(); Debug.Log(client.IsConnected); ISFSObject data = new SFSObject(); if (!isRobot) data.PutUtfString("_cmd&q...
by COB
28 Jul 2011, 18:52
Forum: SFS2X C# API
Topic: Auto reconnection mechanism problem
Replies: 14
Views: 31614

I test reconnection with smartFoxClient.KillConnection(); method. I don't set anything to null. When I kill the connection, I see connection retry and resume event. However, after that I see errors in console which say that smartFoxClient is set to null, so in fact connection was not reestablished p...
by COB
28 Jul 2011, 05:10
Forum: SFS2X C# API
Topic: Auto reconnection mechanism problem
Replies: 14
Views: 31614

Auto reconnection mechanism problem

I'm trying to implement reconnection mechanism and in theory it looks to be very simple. I set User Reconnection Timeframe in admin panel to 5s. In my code I have: smartFoxClient.AddEventListener(SFSEvent.CONNECTION_RETRY, OnConnectionRetry); smartFoxClient.AddEventListener(SFSEvent.CONN...
by COB
28 Jul 2011, 04:21
Forum: SFS2X Questions
Topic: Lost Connection and Reconnection
Replies: 3
Views: 7427

I see similar thing. I am sending connect messages in loop every 5 seconds. When connect does not succeed I see SFSEvent.CONNECTION event, byt without success. However when real connection becomes possible I have no event at all.
by COB
24 Jul 2011, 15:10
Forum: SFS2X C# API
Topic: How to hold character selection pref in SFS2X
Replies: 2
Views: 5736

Of course you can use SFS user variables if you want to share these settings between users, but probably you are looking for something like this:
http://unity3d.com/support/documentatio ... Prefs.html
I use this for the same thing as you and it works great.
by COB
19 Jul 2011, 05:25
Forum: SFS2X C# API
Topic: Clearing user variable
Replies: 8
Views: 12815

This problem concerns also room variables. I see no event on clients when some room variables are cleared by the server. However, they disappear in room monitor in admin panel. When variables are set everything is ok and events are fired.
by COB
13 Jul 2011, 06:35
Forum: SFS2X Questions
Topic: smartfox stops accepting connections/requests
Replies: 15
Views: 45493

Problem may concern database. Maybe we had the same issue. Check this topic.
viewtopic.php?t=11076&highlight=
As far as I know in SFS database examples database connections are not closed. When their number reach limit queries are rejected.
by COB
12 Jul 2011, 07:19
Forum: SFS2X Questions
Topic: How can I send message from server to all users?
Replies: 10
Views: 17927

Thank you Thomas. We will appreciate any help. At the moment this is the only blocking point for our app. Everything else is done.
by COB
04 Jul 2011, 12:50
Forum: SFS2X Questions
Topic: How can I send message from server to all users?
Replies: 10
Views: 17927

Ok, but I would like to send this data from the class (inside the actual extension class) that implements Runnable interface because I have some thread that should send data periodically to the users and I think that this.send will not work.
by COB
04 Jul 2011, 09:13
Forum: SFS2X Questions
Topic: How can I send message from server to all users?
Replies: 10
Views: 17927

I don't have problem with recipients. The problem is that I don't have a sender. I want to send message directly from the server. However, for the function which I mentioned I have to specify the sender... Can you post some code which you exactly use to send such messages from the server to the clie...

Go to advanced search