examples/sockets.cpp
Go to the documentation of this file.
1 
13 /*****************************************************************************
14 ** Includes
15 *****************************************************************************/
16 
17 #include <iostream>
18 #include "../../include/ecl/io/sockets.hpp"
19 
20 /*****************************************************************************
21 ** Main program
22 *****************************************************************************/
23 
24 int main(int argc, char **argv) {
25 
27  if ( error.flag() != ecl::NoError ) {
28  std::cout << error.what() << std::endl;
29  } else {
30  std::cout << "Socket subsystem started up sucessfully." << std::endl;
31  }
32 // ecl::sockets::socket_descriptor = socket(AF_INET, SOCK_STREAM, 0);
33 
34  return 0;
35 }
virtual ErrorFlag flag() const
int main(int argc, char **argv)
ecl_io_PUBLIC SocketError init_sockets()
Initialise the socket subsystem.
Definition: lib/sockets.cpp:27
Extends the generic error handler with socket specific error strings.
Definition: sockets.hpp:68
virtual const char * what() const


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