cmd_drift()
.
#include <sys/poll.h>
#include <unistd.h>
#include <cerrno>
#include <cstring>
#include <memory>
#include "bitmap.h"
#include "lib.h"
#include "rve.h"
Functions | |
void | show_image (const char *data, size_t length) |
int | cmd_drift (int argc, char *argv[]) |
| |
Variables | |
RGBA | canvas |
|
Interfaces with Driftnet (http://www.ex-parrot.com/~chris/driftnet/) to capture images coming across the network and display them at random positions on the screen. To make this work you need to install Driftnet and run the TOOLS/driftd script on the machine that will be capturing from the network. You may want to edit the Driftnet Makefile to disable the GUI code. Also remember to edit the configuration at the top of driftd and to create a temporary dir on the capturing machine (default: ./drift). Instead of connecting to a host/port, the drift command can also just read from stdin if you give the "-" argument. |