Netinet In H Dev C%2b%2b
i'm compiling the following code:
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h> /* definition of struct sockaddr_in */
#include <netdb.h> /* definition of gethostbyname */
#include <arpa/inet.h> /* definition of inet_ntoa */
#include <unistd.h> /* definition of close */
#define TIMESTAMP 100
class Stub
{
public:
Stub();
~Stub();
int acceptClient(int server_fd);
int createServer(int port);
void reset();
void run(int ms);
private:
int fd;
fd_set rfds;
};
#endif //_STUB_H_
and i get the following errors:
Compiler: Default compiler
Building Makefile: 'C:HomeMyProjectswebotscontrollersOmniMakefile.win'
Executing make..
make.exe -f 'C:HomeMyProjectswebotscontrollersOmniMakefile.win' all
g++.exe -c main.cpp -o main.o -I'lib/gcc/mingw32/3.4.2/include'
-I'include/c++/3.4.2/backward' -I'include/c++/3.4.2/mingw32'
-I'include/c++/3.4.2' -I'include' -I'C:/Program Files/Webots/include'
-I'C:/Program Files/Webots/include/device' -I'C:/Program
Files/Webots/include/ode' -I'C:/Program Files/Webots/include/physics'
-I'C:/Home/Programs/Dev-Cpp/include' -ansi -fexceptions -fshort-double
-fexpensive-optimizations -march=i686
In file included from main.cpp:6:
stub.h:5:24: sys/socket.h: No such file or directory
stub.h:7:63: netinet/in.h: No such file or directory
stub.h:8:58: netdb.h: No such file or directory
stub.h:9:54: arpa/inet.h: No such file or directory
In file included from main.cpp:6:
stub.h:27: error: `fd_set' does not name a type
make.exe: *** [main.o] Error 1
Execution terminated
I'm Using WinXP SP2 and the Dev-c++ 4.9.9.2
anyclues?
thank you
Netinet In H Dev C 2b 2b C
The basic mechanisms of client-server setup are: A client app send a request to a server app. The server app returns a reply. Some of the basic data communications between client and server are: File transfer - sends name and gets a file. Web page - sends url and gets a page. Need for speed most wanted 2012 1.5 patch download. Echo - sends a message. Trapcode particular after effects cc 2018 free download for mac. The default header file that comes with the C compiler is the stdio.h. Including a header file means that using the content of header file in your source program. A straightforward practice while programming in C or C programs is that you can keep every macro, global variables, constants, and other function prototypes in the header files.