A vagrant virtualbox to test out various IPCs including 0mq
Basic Ping/Pong demo with zmq_send() and zmq_recv()
Connecting to hello world server…
Sending Ping 0…
Received PING
Sent PONG
Received Pong 0 in 0.001820851 sec
Sending Ping 1…
Received PING
Sent PONG
Received Pong 1 in 0.001063238 sec
Sending Ping 2…
Received PING
Sent PONG
Received Pong 2 in 0.000819637 sec
Sending Ping 3…
Received PING
Sent PONG
Received Pong 3 in 0.000326840 sec
Bring up the virtualmachine and provision the server
$ vagrant up # can take a while depending on your network speed
$ vagrant ssh
$ cd /vagrant/apps
$ make
$ killall zmq_server
$ ./bin/zmq_server &
$ ./bin/zmq_client
Cleaning up
$ vagrant destroy
To manually clean up stray VMs
$ VBoxManage list vms
$ VBoxManage unregistervm ipc_playground –delete
####Requires:
- Vagrant --
sudo apt-get install vagrant
1.2.2 - VirtualBox --
sudo apt-get install virtualbox-4.2
####Built On:
####TODO:
Base vargrant virtualbox installInstall build toolsInstall zeromqBuild test programsPrint out statsImprove test program makefile/library- Add more demos including pub/sub stuff
- Add some scripts to run the test suite and print results
####Issues:
- Find how to extend a standard earth day to 26+ hours long.
####Notes:
- bootstrap.sh does a one-time install of ansible to get the ball rolling
####My workflow:
- git config --global user.name 'Your Name'
- git config --global user.email your@email
- git pull
- edit some code
- git add
- git commit -am 'fixed some bugs'
- git push -u origin master
####Thanks to:
- zeromq
- Fork it.
- Create a branch (
git checkout -b my_new_feature
) - Commit your changes (
git commit -am "Added Cool Thing"
) - Push to the branch (
git push origin my_new_feature
) - Open a Pull Request
- Enjoy a few plumphelmets while you wait cuz I've never done this before.