This file contains 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 __CSocket__ | |
#define __CSocket__ | |
#if CC_TARGET_PLATFORM==CC_PLATFORM_WIN32 | |
#include <winsock.h> | |
#elif CC_TARGET_PLATFORM==CC_PLATFORM_ANDROID | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> |
This file contains 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
/* | |
* define file about portable socket class. | |
* description:this sock is suit both windows and linux | |
* design:odison | |
* e-mail:odison@126.com> | |
* | |
*/ | |
#ifndef _ODSOCKET_H_ | |
#define _ODSOCKET_H_ |
This file contains 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
#!/bin/bash | |
#============================================================================= | |
# FileName: vps-backup.sh | |
# Desc: vps backup script | |
# Author: Hector | |
# Email: myourys@gmail.com | |
# HomePage: http://www.yiwuye.com | |
# Version: 0.0.1 | |
# LastChange: 2014-07-17 14:50:13 | |
# History: |