A simple p2p chat between two participants (planned to be extended to N participtans).
STUN information is generated via an external STUN server, and is exchanged between participants via an external node.js server. Afterwards it's all p2p.
-
Compile Socket.IO C++ Client
-
Put the following files into the 'object' folder: libboost_date_time.a, libboost_random.a, libboost_system.a, libsioclient.a, libsioclient_tls.a
-
build libnice
-
execute: g++ -g -I ./header p2p-chat.cpp object/libsioclient.a object/libboost_date_time.a object/libboost_random.a object/libboost_system.a object/libsioclient_tls.a -o p2p-chat -std=gnu++11
pkg-config --cflags --libs nice
p2p-chat $(host -4 -t A stun.stunprotocol.org | awk '{ print $4 }')