Comments (7)
话是这么说= =不过,是期望在znet类型隔离的,那传啥好呢= =void*的buf么= =
from znet.
支持ipv6吗。。。 我看目前是没这打算。。。 那么socket和WSASocket的参数是死的。。。 就connect需要addr)或者再加一个len)。
socket addr这块丑得一逼, 不知道当初那些人是怎么想的, 每次都要cast一下。。。 感觉并没有什么乱用。。。
不如直接用const void*免得让用户再cast了。
from znet.
getaddrinfo有,不过最小系统依赖是Vista或者Win8.1
from znet.
另外,貌似这个函数会阻塞啊= =
from znet.
windows简直水深火热-_-
hints.ai_flags |= AI_NUMERICHOST;
getaddrinfo(node, service, &hints, &res);
If hints.ai_flags contains the AI_NUMERICHOST flag then node must be a numerical network address. The AI_NUMERICHOST flag suppresses any potentially lengthy network host address lookups.
为什么是vista(这是win6吧)和win8.1? win7怎么跳过了。。。
inet_pton/inetPton,inet_aton呢? 它们至少会检查(很可能来自用户的)输入。。。
from znet.
InetPton 同样是8.1才有= =
from znet.
我自己实现了一个pton和ntop,这个问题已经解决掉了
from znet.
Related Issues (10)
- zn_recvprepare没有定义 HOT 3
- ZN_MAX_ADDRLEN HOT 6
- GetQueuedCompletionStatusEx and event buffer size HOT 27
- asynchronize getaddrinfo/getnameinfo HOT 39
- 添加一个mac 或者linux的测试脚本? HOT 2
- Feature request. HOT 2
- EPOLL_CTL_DEL and close
- error in zn_sendfinish function HOT 1
- need zn_Tcp pool HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from znet.