Cocos (C++) => Socket.IO File Transfer

Cocos (C++) => Socket.IO File Transfer
0.0 0

#1

Recetly our team make some multiplay game with COSCOS 2DX 3.14.

We are using socket.io to connect players each other

but I found some problem to using SOCKET.IO Class

Reference is here >> http://www.cocos2d-x.org/reference/native-cpp/V3.2alpha0/d3/d81/classcocos2d_1_1network_1_1_socket_i_o.html

My Problem is to make the game properly, uploading image to socket is neccesary…(like chatting system)

I can transfer simple text or data after see SOCKET,IO class. but I really couln’t know how can I transfer images (send or receive) …

does any one know about it?

I’ll REALLY need this function.


#2

Well you can pass Base64 encode string to socket server.


#3

Yes I know but my actual problem is cocos-2dx not supporte ssl socket…;(