api_services.h

Go to the documentation of this file.
00001 
00024 #ifndef API_SERVICES_H_
00025 #define API_SERVICES_H_
00026 
00027 /*
00028  * INCLUDES DOS SERVIÇOS PARA A CAMADA DE APLICAÇÃO
00029  * */
00030 /*#include "smtp.h"*/
00031 #include "../sockets/cli_webSock.h"
00032 #include "../telnetd/telnetd.h"
00033 #include "../httpd/httpd.h"
00034 #include "../dhcp/dhcpc.h"
00035 #include "../sft/sftd.h"
00036 /*#include "resolv.h"*/
00037 /*#include "webclient.h"*/
00038 
00039 
00040 //import project ftp
00041 //#include "../ftp/ftp.h"
00042 
00043 //portas...
00044 #define TELNET_PORT 23
00045 #define HTTP_PORT 80
00046 #define FTP_PORT 21
00047 #define SFTD_PORT 45
00048 uint32_t CHAT_PORT;
00049 
00050 int global_chat_flag; //flag que verifica se o chat está em funcionamento.
00051 
00058 typedef union {
00059         struct httpd_state * http_st;
00060         struct telnetd_state telnet_st;
00061         struct chat_state * chat_st;
00062         //struct ftp_state * ftp_st;
00063         struct sftd_state * sftd_st;
00064 }uip_tcp_appstate_t;
00065 
00066 
00067 #endif /* API_SERVICES_H_ */