GithubHelp home page GithubHelp logo

libgonet's People

Contributors

sarrow104 avatar yyzybb537 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libgonet's Issues

有个疑问想问下

qq 20170501144906
send_token是用来保护msg_chan_的么
如果是的话,是不是要先lock,用完了msg_chan_,然后在unlock

是tcp_detail.cpp的206行,void TcpSession::goSend()方法

windows下支持吗

这个是不是只针对linux啊,我在windows尝试编译,除了很多问题,有很多是因为用了linux中的函数,代码没有判断

libgonet

libgonet 里面的libgo版本有点老? 这个项目还维护吗.

linux下编译问题

‘reset_writable’ is not a member of ‘co’
编译报这个错误,请问怎么修改

Linux编译错误undefined reference to `co::CoTimer::CoTimerImpl::~CoTimerImpl()'

[100%] Linking CXX executable ../../bin/socks-serv
/root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function co::CoTimer::CoTimer<long, std::ratio<1l, 1000l> >(std::chrono::duration<long, std::ratio<1l, 1000l> >, co::Scheduler*)': /root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:53: undefined reference to co::CoTimer::CoTimerImpl::CoTimerImpl(std::chrono::duration<long, std::ratio<1l, 1000000000l> >)'
/root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:55: undefined reference to co::CoTimer::Initialize(co::Scheduler*)' /root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function network::tcp_detail::GetTimer()':
/root/work/socks-libgo/third_party/libgonet/libgonet/tcp_detail.cpp:22: undefined reference to co::CoTimer::~CoTimer()' /root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function co::Timer<std::function<void ()> >::TimerId co::CoTimer::ExpireAt<long, std::ratio<1l, 1000l> >(std::chrono::duration<long, std::ratio<1l, 1000l> >, std::function<void ()> const&)':
/root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:70: undefined reference to co::CoTimer::ExpireAt(std::chrono::duration<long, std::ratio<1l, 1000000000l> >, std::function<void ()> const&)' /root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:70: undefined reference to co::CoTimer::ExpireAt(std::chrono::duration<long, std::ratio<1l, 1000000000l> >, std::function<void ()> const&)'
/root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:70: undefined reference to co::CoTimer::ExpireAt(std::chrono::duration<long, std::ratio<1l, 1000000000l> >, std::function<void ()> const&)' /root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function std::_Sp_counted_ptr<co::CoTimer::CoTimerImpl*, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
/usr/local/gcc/include/c++/11.0.0/bits/shared_ptr_base.h:348: undefined reference to co::CoTimer::CoTimerImpl::~CoTimerImpl()' /root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_countco::CoTimer::CoTimerImpl*(co::CoTimer::CoTimerImpl*)':
/usr/local/gcc/include/c++/11.0.0/bits/shared_ptr_base.h:600: undefined reference to `co::CoTimer::CoTimerImpl::~CoTimerImpl()'
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/socks-serv] Error 1
make[1]: *** [socks-serv/CMakeFiles/socks-serv.dir/all] Error 2
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.