CS144Lab/doctests/socket_dt.cc
2021-09-21 17:11:37 -07:00

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;
}