alibaba / erlang_multi_pollset Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Show error as below:
$ make
==> erlang_multi_pollset (clean)
==> erlang_multi_pollset (compile)
c++ -g -Wall -O2 -fno-strict-aliasing -DEV_STANDALONE -I./ -I/usr/local/Cellar/erlang/19.1/lib/erlang/erts-8.1/include -fPIC -dynamiclib -undefined dynamic_lookup -c raw_socket.cpp
clang: warning: argument unused during compilation: '-dynamiclib'
clang: warning: argument unused during compilation: '-undefined dynamic_lookup'
raw_socket.cpp:751:40: error: use of undeclared identifier 'SOCK_CLOEXEC'
fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0);
^
raw_socket.cpp:1189:37: error: use of undeclared identifier 'MSG_NOSIGNAL'
int sent = send(fd, p, len, MSG_NOSIGNAL);
^
raw_socket.cpp:1356:37: error: use of undeclared identifier 'MSG_NOSIGNAL'
sent = sendmsg(fd, &msghdr, MSG_NOSIGNAL);
^
raw_socket.cpp:2351:38: error: target exception specification is not superset of source
ev_set_loop_release_cb(ps->loop, l_release, l_acquire);
^
4 errors generated.
make[1]: *** [raw_socket.o] Error 1
ERROR: Command [compile] failed!
make: *** [compile] Error 1
Hi there! This is pretty nifty. I found this after looking for ways to avoid contention on the inner select lock. However, it looks like the 'inet6' option is unsupported in gen_socket:connect. Any plans to add this or is there another way to accomplish this? Also was curious about the {packet, 4} option.
按照首页文档创建服务器和客户端,
服务器accept返回,
3> {ok, S} = gen_socket:accept(L).
{ok,{140226430765064,<<>>}}
客户端connect一直阻塞
{ok, S} = gen_socket:connect("127.0.0.1", 10000, []).
tcpdump抓包三次握手也已经建立成功。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.