sockets.cpp
Go to the documentation of this file.
00001 
00013 /*****************************************************************************
00014 ** Includes
00015 *****************************************************************************/
00016 
00017 #include <iostream>
00018 #include "../../include/ecl/io/sockets.hpp"
00019 
00020 /*****************************************************************************
00021 ** Main program
00022 *****************************************************************************/
00023 
00024 int main(int argc, char **argv) {
00025 
00026     ecl::SocketError error = ecl::init_sockets();
00027     if ( error.flag() != ecl::NoError ) {
00028         std::cout << error.what() << std::endl;
00029     } else {
00030         std::cout << "Socket subsystem started up sucessfully." << std::endl;
00031     }
00032 //    ecl::sockets::socket_descriptor = socket(AF_INET, SOCK_STREAM, 0);
00033 
00034     return 0;
00035 }


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