Search found 79 matches

by scofy
31 Aug 2016, 06:49
Forum: SFS2X HTML5 / JavaScript API
Topic: byte[] to string problem
Replies: 1
Views: 4465

byte[] to string problem

When serverside send a string by byte[] to client like this: byte[] utf8 = str.getBytes("UTF-8"); and on client side i make string by function binl2rstr() var len = param.readInt() if(len > 0){ var nameData = [] for(var i=0;i<len;i++){ nameData.push(param.readByte()) } ret.name = binl2rstr...
by scofy
06 Jun 2016, 02:36
Forum: SFS2X iPhone / iPad / OSX API
Topic: Is the 1.6.2 API supports IPV6 networks?
Replies: 2
Views: 9801

Is the 1.6.2 API supports IPV6 networks?

Apps are reviewed on IPV6 networks and the compatibility is required.
by scofy
15 Jan 2015, 02:47
Forum: SFS2X iPhone / iPad / OSX API
Topic: Bug report!
Replies: 1
Views: 6531

Bug report!

While ios client(version 1.3.7) receive a string contains symbol "{" but not contains symbol "}" ,it will be crash with error message "Exception onDataRead!!!".Pls check it.
by scofy
17 Aug 2014, 15:35
Forum: SFS2X C++ API
Topic: C++ API bug with getLongArray
Replies: 2
Views: 6960

Re: C++ API bug with getLongArray

Could anybody help me?
by scofy
15 Aug 2014, 10:09
Forum: SFS2X C++ API
Topic: C++ API bug with getLongArray
Replies: 2
Views: 6960

C++ API bug with getLongArray

If i send a long value(1000010000123) by longarray from server,the value which c++ client received is (-717379845).Please check it.
by scofy
04 May 2014, 09:48
Forum: SFS2X iPhone / iPad / OSX API
Topic: How can i use the variable “_isConnecting”?
Replies: 1
Views: 5511

How can i use the variable “_isConnecting”?

While the client is connecting,i have to stop it send the ExtensionRequest.
by scofy
22 Jun 2013, 10:04
Forum: SFS2X C++ API
Topic: Chinese strings API0.9.6
Replies: 1
Views: 5201

Re: Chinese strings API0.9.6

There is a bug in the method putUtfString of the client api,could anyone check and fix it.
by scofy
21 May 2013, 15:34
Forum: SFS2X C++ API
Topic: unknown compression method
Replies: 5
Views: 11961

Re: unknown compression method

Thanks,the new class fix my problems!
by scofy
21 May 2013, 13:11
Forum: SFS2X C++ API
Topic: How can i see the dump messages on the output window ?
Replies: 5
Views: 9928

How can i see the dump messages on the output window ?

How can i see the dump messages on the output window of VS2010,just like XCode dump message. 2013-05-21 20:13:44.706 iGame[4900:c07] onDebugMessage 2013-05-21 20:13:44.707 iGame[4900:c07] [SFS - INFO]{ Message id: 13 } {Dump: } (utf_string) c: sys.getbuff (sfs_object) p: (bool) repu: 0 (bool) shop: ...
by scofy
19 May 2013, 00:16
Forum: SFS2X C++ API
Topic: unknown compression method
Replies: 5
Views: 11961

unknown compression method

In the SimpleChat example,I want to send a public message with a lot of words,modify CChatFrm::OnClickedButtonSendChatMessage() std::string* stdChatMessage = new string(pszConvertedAnsiString); replace with these codes int size = 1024; char* str = new char[size+1]; for(int i=0;i<size;i++){ str[i] = ...
by scofy
18 May 2013, 13:36
Forum: SFS2X C++ API
Topic: DecodeSFSObject Exception!
Replies: 3
Views: 7287

DecodeSFSObject Exception!

ISFSObject* DefaultSFSDataSerializer::DecodeSFSObject(ByteArray* buffer) { SFSObject* sfsObject = SFSObject::NewInstance(); // Get tpyeId unsigned char headerByte; buffer->ReadByte(headerByte); // Validate typeId if (headerByte != (unsigned char)SFSDATATYPE_SFS_OBJECT) { string* err = new string();...
by scofy
17 May 2013, 07:59
Forum: SFS2X C++ API
Topic: SFSEvent::CONNECTION_LOST BUG
Replies: 1
Views: 4971

SFSEvent::CONNECTION_LOST BUG

Code: Select all

string *reason = ((string*)pEvent->Params()->at("reason"));

Then reason is NULL.
by scofy
14 May 2013, 06:46
Forum: SFS2X C++ API
Topic: Parameter (string * key)
Replies: 6
Views: 10496

Re: Parameter (string * key)

way3: SFSObject *obj = new SFSObject(); obj->PutUtfString(&string("name"),&userName); obj->PutUtfString(&string("sPwd"),&userName); obj->PutUtfString(&string("sZone"),&string("sGame")); //TODO: send cmd; delete obj; use SFSObject::GetIn...
by scofy
14 May 2013, 03:49
Forum: SFS2X C++ API
Topic: Parameter (string * key)
Replies: 6
Views: 10496

Parameter (string * key)

Many functions using the parameter (string * key). This parameter point is need to delete or do not need , the API documentation did not specify. for example:(SimpleChat) CT2CA pszConvertedAnsiString (username); std::string* stdUsername = new string(pszConvertedAnsiString); // Programmatically set t...

Go to advanced search