Test the cross platform poll implementation. More...
#include <iostream>
#include <cstdlib>
#include <ecl/config/ecl.hpp>
#include <ecl/errors/handlers.hpp>
#include "../../include/ecl/io/poll.hpp"
#include "../../include/ecl/io/socketpair.hpp"
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | DATA1 "In Xanadu, did Kublai Khan . . ." |
#define | DATA2 "A stately pleasure dome decree . . ." |
Functions | |
int | main (int argc, char **argv) |
void | sleep_one_sec () |
int | socket_error () |
Variables | |
ecl::socket_descriptor | socket_pair [2] |
Test the cross platform poll implementation.
Definition in file examples/poll.cpp.
#define DATA1 "In Xanadu, did Kublai Khan . . ." |
Definition at line 26 of file examples/poll.cpp.
#define DATA2 "A stately pleasure dome decree . . ." |
Definition at line 27 of file examples/poll.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 59 of file examples/poll.cpp.
void sleep_one_sec | ( | ) |
Definition at line 47 of file examples/poll.cpp.
int socket_error | ( | ) |
Definition at line 39 of file examples/poll.cpp.
ecl::socket_descriptor socket_pair[2] |
Definition at line 33 of file examples/poll.cpp.