Macros | Functions | Variables
examples/socketpair.cpp File Reference

Example code for a socket pair. More...

#include <iostream>
#include <cstdlib>
#include <ecl/config/ecl.hpp>
#include <unistd.h>
#include <ecl/errors/handlers.hpp>
#include "../../include/ecl/io/socketpair.hpp"
Include dependency graph for examples/socketpair.cpp:

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)
 
int socket_error ()
 

Variables

ecl::socket_descriptor socket_pair [2]
 

Detailed Description

Example code for a socket pair.

Date
February, 2011

Definition in file examples/socketpair.cpp.

Macro Definition Documentation

◆ DATA1

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

Definition at line 26 of file examples/socketpair.cpp.

◆ DATA2

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

Definition at line 27 of file examples/socketpair.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 69 of file examples/socketpair.cpp.

◆ socket_error()

int socket_error ( )

Definition at line 58 of file examples/socketpair.cpp.

Variable Documentation

◆ socket_pair

ecl::socket_descriptor socket_pair[2]

Definition at line 33 of file examples/socketpair.cpp.



ecl_io
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:16:11