PageRenderTime 268ms CodeModel.GetById 116ms app.highlight 8ms RepoModel.GetById 79ms app.codeStats 1ms

/TheElements/jni/server.h

http://thelements.googlecode.com/
C++ Header | 31 lines | 15 code | 5 blank | 11 comment | 0 complexity | 2cb3f23e63eb78ec51c13f61f72f59df MD5 | raw file
 1/*
 2 * server.h
 3 * --------------------------
 4 * Declares functions for building the buffer,
 5 * sending it to the server, and receiving and
 6 * storing the return data.
 7 */
 8
 9#ifndef SERVER_H_INCLUDED
10#define SERVER_H_INCLUDED
11
12#define SERVER_IP "71.244.112.67"
13#define PORTNUM 2000
14
15//Include the global variables
16#include "app.h"
17//Include the global macros
18#include "macros.h"
19//Socket includes
20#include <sys/types.h>
21#include <sys/socket.h>
22#include <netinet/in.h>
23#include <netdb.h>
24//For bcopy and bzero
25#include <strings.h>
26
27void adduserpass(void);
28void buildbuffer(int type);
29int sendbuffer(void);
30
31#endif