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.
Android/iOS & C++
Re: Android/iOS & C++
Your code includes Windows functions, types, etc. DWORD, closesocket, and so on are not standard.
-
- Posts: 386
- Joined: Sun May 11, 2014 12:13 am
Re: Android/iOS & C++
Thanks!! I forgot to mention that I'd got it working by only using closesocket and everything not standard only on Windows.hendu wrote:Your code includes Windows functions, types, etc. DWORD, closesocket, and so on are not standard.
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.