A mini simplest cross platform socket wrapper APIs, support win32 & linux & ios & android & wp8 & wp
来源:互联网 发布:暗黑西游记淘宝专区 编辑:程序博客网 时间:2024/05/16 03:41
xxsocket
A mini simplest cross platform posix socket API wrapper, support win32 & linux & ios & android & wp8 & wp8.1-universal & win10-universal
support IPv6-only network.
Usage:
Only compile src\xxsocket.cpp src\xxsocket.h src\politedef.h with your project; For gcc, you must add --std=c++11 compile flagdemo code:
#include “xxsocket.h”
using namespace purelib::inet;
void test_connect()
{
xxsocket clientsock;
// The interface xpconnect_n will detect whether localhost is IPV6 only network automatically
// and connect the ipv4 server by V4MAPPED address.
if(0 == clientsock.xpconnect_n(“www.baidu.com”, 443, 5/* connect timeout 5 seconds */))
{
printf(“connect succeed\n”);
}
}
github URL: https://github.com/halx99/xxsocket
0 0
- A mini simplest cross platform socket wrapper APIs, support win32 & linux & ios & android & wp8 & wp
- MonoGame Cross Platform Implementation of XNA for iOS, Android, Mac , Linux, Windows, Windows8, OUYA
- Best iOS/Android cross-platform mobile development SDKs
- cross compiling in Linux for android(arm_linux) platform
- cross-platform linux and windows
- A Simple Win32 Window Wrapper Class
- File Locking Using a Cross-Platform API
- Android 、 WP 7 、IOS
- How to write a simplest wireshark dissector(under Linux)
- Cross Platform IDE for Android Native Development
- Android simplest intent broadcast
- linux platform A
- [SYNERGY] A mouse and keyboard sharing software on cross-platform
- libuvc: a cross-platform library for USB video devices
- CLion: A cross-platform IDE for C and C++
- iOS、Android、WP前景观望
- "Android"牵手"iOS",WP滚蛋
- buildToolsVersion,platform-tools,com.android.support 作用
- Java网络编程之(三): TCP协议使用NIO实现非阻塞Soket通信
- oracleJet-router
- 单片机之STM32 adc Regular injected 意思和区别
- Git之创建版本库
- SpringMVC集成Tiles布局引擎框架
- A mini simplest cross platform socket wrapper APIs, support win32 & linux & ios & android & wp8 & wp
- AC自动机
- 算法基础篇:常见图论最短路算法(Bellman-Ford→SPFA→Dijkstra Floyd-Warshall )入门以及代码解析
- 程序员面试宝典--8.2递归(2)
- 【引用】C#读写app.config中的数据
- C#打印时,自定义纸张
- C#命名规范
- C#窗口中的控件都看不见了
- Struts2中通过validation.xml验证数字,后台报错