Android/iOS & C++

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
LunaRebirth
Posts: 386
Joined: Sun May 11, 2014 12:13 am

Re: Android/iOS & C++

Post by LunaRebirth »

I'm using
#include <sys/socket.h>
which seems to, according to Google searching, work for others.
I wonder why it isn't for me..

You're probably spot-on with me using Windows-headers, however I cannot seem to find unix-based versions -supported- for POSIX that will work on Android.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Android/iOS & C++

Post by hendu »

Your code includes Windows functions, types, etc. DWORD, closesocket, and so on are not standard.
LunaRebirth
Posts: 386
Joined: Sun May 11, 2014 12:13 am

Re: Android/iOS & C++

Post by LunaRebirth »

hendu wrote:Your code includes Windows functions, types, etc. DWORD, closesocket, and so on are not standard.
Thanks!! I forgot to mention that I'd got it working by only using closesocket and everything not standard only on Windows.
It works fabulously and after port forwarding, I'm able to play on my Android phone with my PC client.
Truly amazing!

Thanks again, everyone.
Post Reply