Coder Social home page Coder Social logo

libf2f's Introduction

libf2f is a (work-in-progress) C++ boost/asio library for building p2p networks

Provides:
* network servent/router
* connection handling and abstraction
* message class that is marshalled to/from the network
* very simple test app (only supports ping+pong)

Does not provide:
* high level protocol, you have to design implement this yourself
  (ie, extend the Protocol class)

Will hopefully provide in future:
* UPnP control capability to set up port-fwds
* Flow control strategies to manage bandwidth utilisation
* A better, simple demo app

libf2f's People

Contributors

rj avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

libf2f's Issues

pthreads linking error

On ubuntu 9.04. I went through building playdar etc etc, right debs and such.
During the make stage, I getting linking errors building main.cpp.

[100%] Building CXX object CMakeFiles/f2f-demo.dir/app/main.cpp.o
/usr/bin/c++    -I/home/tims/workspace/playdar/tmp/libf2f/include   -Wall -g -fno-operator-names -fPIC -O2 -o CMakeFiles/f2f-demo.dir/app/main.cpp.o -c /home/tims/workspace/playdar/tmp/libf2f/app/main.cpp
Linking CXX executable ../bin/f2f-demo
/usr/bin/cmake -E cmake_link_script CMakeFiles/f2f-demo.dir/link.txt --verbose=1
/usr/bin/c++      CMakeFiles/f2f-demo.dir/app/main.cpp.o  -o ../bin/f2f-demo -rdynamic -L/home/tims/workspace/playdar/tmp/libf2f/lib -L/usr/local/lib libf2f.a -Wl,-Bstatic -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lboost_program_options-mt -lboost_date_time-mt -Wl,-Bdynamic -Wl,-rpath,/home/tims/workspace/playdar/tmp/libf2f/lib:/usr/local/lib
CMakeFiles/f2f-demo.dir/app/main.cpp.o: In function `posix_tss_ptr':
/usr/include/boost/asio/detail/posix_tss_ptr.hpp:47: undefined reference to `pthread_key_create'
CMakeFiles/f2f-demo.dir/app/main.cpp.o: In function `~posix_tss_ptr':
/usr/include/boost/asio/detail/posix_tss_ptr.hpp:61: undefined reference to `pthread_key_delete'
CMakeFiles/f2f-demo.dir/app/main.cpp.o: In function `~posix_thread':
/usr/include/boost/asio/detail/posix_thread.hpp:69: undefined reference to `pthread_detach'
CMakeFiles/f2f-demo.dir/app/main.cpp.o: In function `boost::asio::detail::posix_thread::join()':
/usr/include/boost/asio/detail/posix_thread.hpp:77: undefined reference to `pthread_join'
CMakeFiles/f2f-demo.dir/app/main.cpp.o: In function `posix_signal_blocker':
/usr/include/boost/asio/detail/posix_signal_blocker.hpp:48: undefined reference to `pthread_sigmask'
CMakeFiles/f2f-demo.dir/app/main.cpp.o: In function `~posix_signal_blocker':
/usr/include/boost/asio/detail/posix_signal_blocker.hpp:55: undefined reference to `pthread_sigmask'

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.