This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <libwebsockets.h> | |
| static int callback_http(struct libwebsocket_context *context, | |
| struct libwebsocket *wsi, | |
| enum libwebsocket_callback_reasons reason, void *user, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef __RE_REPLACE__ | |
| #define __RE_REPLACE__ | |
| #include <string.h> | |
| #include <regex.h> | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************** SERVER CODE ****************/ | |
| #include <stdio.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #include <string.h> | |
| #include <arpa/inet.h> | |
| int main(){ | |
| int welcomeSocket, newSocket; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CentOS-Vault.repo | |
| # | |
| # CentOS Vault holds packages from previous releases within the same CentOS Version | |
| # these are packages obsoleted by the current release and should usually not | |
| # be used in production | |
| #----------------- | |
| [C6.0-base] | |
| name=CentOS-6.0 - Base | |
| baseurl=http://vault.centos.org/6.0/os/$basearch/ |
NewerOlder