C++ API v1.6.4 released

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

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

C++ API v1.6.4 released

Postby Bax » 18 Jul 2016, 08:07

We just released version 1.6.4 of the C++ API for SmartFoxServer 2X, which provides official IPv6 support.
You can download the new API from this page: http://www.smartfoxserver.com/download/sfs2x#p=client
Paolo Bax
The SmartFoxServer Team
giangnm90
Posts: 3
Joined: 18 Jul 2016, 09:41

Re: C++ API v1.6.4 released

Postby giangnm90 » 18 Jul 2016, 09:45

Hi Bax,
I just replace with smartfox 1.6.4 C++.
When device connect with IPv6.
I see client can connect to server, but cannot login.

Can you help me?

Thanks!
giangnm90
Posts: 3
Joined: 18 Jul 2016, 09:41

Re: C++ API v1.6.4 released

Postby giangnm90 » 18 Jul 2016, 10:23

Hello,

This is review from Apple
From Apple
2.2 - Apps that exhibit bugs will be rejected
2.2 Details
We discovered one or more bugs in your app when reviewed on an iPad running iOS 9.3.2 and an iPhone running iOS 9.3.2 on both Wi-Fi and cellular networks.
Next Steps
Apps are reviewed on an IPv6 network. Please ensure that your app supports IPv6 networks, as IPv6 compatibility is required.
For additional information about supporting IPv6 Networks, please refer to Supporting iPv6 DNS64/NAT64 Networks.
For a networking overview, see About Networking.

//My steps
1. Please follow this instruction to create an ipv6 network:
https://developer.apple.com/library/mac ... -CH213-SW1

2. Your "client" (Iphone, Ipad) connect to ipv6 network just created.

3. client connect to server:
- onConnection is OK.
- but loginRequest send nothing or server can't listen from client.

C++ client API 1.6.4
User avatar
Bax
Site Admin
Posts: 4405
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: C++ API v1.6.4 released

Postby Bax » 18 Jul 2016, 13:09

Let's keep the two issues (login and Apple rejection) separate.
First of all you have to make the login work. There's no reason why login should not work in IPv6: either you can't connect, or everything should work fine.
So, did you check the server logs after attempting the login? Are you sure there's no error thrown?
Paolo Bax
The SmartFoxServer Team
giangnm90
Posts: 3
Joined: 18 Jul 2016, 09:41

Re: C++ API v1.6.4 released

Postby giangnm90 » 18 Jul 2016, 13:50

Okay,
I'll speak about problem Connect & Login.

I use device iphone connect IPv4 from normal wifi, event connect & login to server are normal, not problem.
But with that code, I connect iphone to IPv6 (follow the instructions of the apple), I see log in event onConnection is shown and I don't see any log in onLoginSuccess or onLoginFailed is called.

This problem also appear on the version 1.6.3 c++.
User avatar
Bax
Site Admin
Posts: 4405
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: C++ API v1.6.4 released

Postby Bax » 18 Jul 2016, 14:23

Can you show the portion of the server-side log showing the connection and login? (both IPv4 and IPv6)
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4405
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: C++ API v1.6.4 released

Postby Bax » 18 Jul 2016, 14:31

By the way, a developer reported a similar issue, but in the end it could make it work: viewtopic.php?f=34&t=18485
Maybe you can send him a message.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 2 guests