Search found 50 matches

by steve13627
07 Dec 2016, 04:25
Forum: SFS2X Questions
Topic: SmartFox disconnect problem| Waitting online
Replies: 10
Views: 11111

Re: SmartFox disconnect problem| Waitting online

Can you show me the code? Maybe it will help understanding what you mean. Thanks package sfs2x.extension.test.dblogin; import java.util.Random; import com.smartfoxserver.v2.entities.data.ISFSObject; import com.smartfoxserver.v2.entities.data.SFSObject; import com.smartfoxserver.v2.exceptions.SFSExc...
by steve13627
06 Dec 2016, 09:49
Forum: SFS2X Questions
Topic: SmartFox disconnect problem| Waitting online
Replies: 10
Views: 11111

Re: SmartFox disconnect problem| Waitting online

Sorry this is not clear. You create two instances of which class? What does you class A do? And why two instances? Sorry, the class A has a field which has implement IEventListener interface, I use two instance of class A which named classA1,classA2, if i put a condition in the dispatch() method li...
by steve13627
06 Dec 2016, 09:47
Forum: SFS2X Questions
Topic: SmartFox disconnect problem| Waitting online
Replies: 10
Views: 11111

Re: SmartFox disconnect problem| Waitting online

In other words when the connection is closed, the SmartFox API will shut down all the internal threads. If your main thread is not doing anything then your program will quit, but this depends on your code. Is does means, if we have mutil thread connect to smartFox server, one of the thread use disc...
by steve13627
06 Dec 2016, 09:42
Forum: SFS2X Questions
Topic: SmartFox disconnect problem| Waitting online
Replies: 10
Views: 11111

Re: SmartFox disconnect problem| Waitting online

Sorry, the class A has a field which has implement IEventListener interface, I use two instance of class A which named classA1,classA2, if i put a condition in the dispatch() method like this: "if the className is classA1, then use smartFox.disconnect()", the application should still runni...
by steve13627
06 Dec 2016, 06:50
Forum: SFS2X Questions
Topic: SmartFox disconnect problem| Waitting online
Replies: 10
Views: 11111

SmartFox disconnect problem| Waitting online

I have a double with SmartFox.disconnect() method in JAVA API, The thing is like this: I have a client class A, I create two instance in main method and running it in main method. When I use the smartFox.disconnect() in the dispatch method, the whole program is stop running. Dose the SmartFox.discon...

Go to advanced search