Defines | Functions | Variables
poll.cpp File Reference

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 dependency graph for examples/poll.cpp:

Go to the source code of this file.

Defines

#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]

Detailed Description

Test the cross platform poll implementation.

Date:
February 2011

Definition in file examples/poll.cpp.


Define Documentation

#define DATA1   "In Xanadu, did Kublai Khan . . ."

Definition at line 23 of file examples/poll.cpp.

#define DATA2   "A stately pleasure dome decree . . ."

Definition at line 24 of file examples/poll.cpp.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 56 of file examples/poll.cpp.

void sleep_one_sec ( )

Definition at line 44 of file examples/poll.cpp.

int socket_error ( )

Definition at line 36 of file examples/poll.cpp.


Variable Documentation

ecl::socket_descriptor socket_pair[2]

Definition at line 30 of file examples/poll.cpp.



ecl_io
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Thu Jan 2 2014 11:11:37