Show EOL distros:
ecl_lite: ecl_config | ecl_converters_lite | ecl_errors | ecl_io | ecl_sigslots_lite | ecl_time_lite
Package Summary
Released
Documented
Most implementations (windows, posix, ...) have slightly different api for low level input-output functions. These are gathered here and re-represented with a cross platform set of functions.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: hydro-devel)
Contents
Overview
Api such as this are only added on an as needed basis. Up until now, its mostly been used as a sandbox for testing cross-platform api that wrap slight differences in posix and win32 functionality.
Compiling & Linking
Toggle line numbers
1 #include <ecl/io.hpp>
2
3 // Cross platform functions
4 using ecl::init_sockets; // initialises winsock on windows.
5 using ecl::shutdown_sockets; // shuts down winsock on windows.
6 using ecl::poll_sockets; // a drop in for posix poll() on windoze.
7 using ecl::close_socket; // a drop in for posix socketpair() on windoze.
8 using ecl::socket_pair; // standardises the api for closing a socket.
9
Outside ros, you will also need to link to ecl_io.
Examples
src/examples/poll.cpp
src/examples/sockets.cpp
src/examples/socketpair.cpp