Skip to content
Sample of Socket.IO C++ Client.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
web
.gitignore
LICENSE
README.md

README.md

socket.io-cpp-client-sample

Sample of Socket.IO C++ Client.

This program provide result of command on native client's shell to web browser.

This program is explained in linked Japanese article.

How to use.

Compile native client.

$ git clone https://github.com/llamerada-jp/socket.io-cpp-client-sample.git
$ cd socket.io-cpp-client-sample
$ cd src
$ mkdir build
$ cd build
$ cmake -D SIO_DIR=<Socket.IO C++ Client dir> -D BOOST_ROOT=<Boost dir> ..
$ make

Run server.

$ cd socket.io-cpp-client-sample
$ cd src
$ npm install
$ node index.jx

Run client

$ cd socket.io-cpp-client-sample
$ cd src/build
$ ./client http://localhost:8000/ <Your pc's ID.>

Access by web browser.

Access to http://localhost:8000/ and input browser's ID. Input command (like 'ls') and push button. The results on C++ client are displayed.

You can’t perform that action at this time.