27 lines
424 B
C++
27 lines
424 B
C++
#include "socket.hh"
|
|
|
|
#include "address.hh"
|
|
#include "util.hh"
|
|
|
|
#include <array>
|
|
#include <cstdlib>
|
|
#include <random>
|
|
#include <stdexcept>
|
|
#include <sys/socket.h>
|
|
#include <vector>
|
|
|
|
int main() {
|
|
try {
|
|
{
|
|
#include "socket_example_1.cc"
|
|
} {
|
|
#include "socket_example_2.cc"
|
|
} {
|
|
#include "socket_example_3.cc"
|
|
}
|
|
} catch (...) {
|
|
return EXIT_FAILURE;
|
|
}
|
|
return EXIT_SUCCESS;
|
|
}
|