各位,我看到了一款游戏代码,关于socket的头文件的引用,
#ifndef QUEUE_H
#define QUEUE_H
#include
#include <sys/types.h>
#include <sys/time.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
#include <stdio.h>
using namespace std;
#ifndef NETWORK_H
#define NETWORK_H
#include
#include
#include
#include <sys/socket.h>
我用VS2013打开的,发现有些头文件找不到,
想问一下:
1。 <sys/socket.h> 是mac linux 下的文件吗;
2。这个项目没有定义Win32 是不是不在windows 上面开发的;
3。目前有没有好的支持多平台(win,ios,android)的socket DEMO,望共享一下
谢谢,我是新手