Advertisement
Vlad3955

main.cpp

Oct 5th, 2022
772
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include "userver.h"
  2.  
  3.  
  4.  
  5. int main(int argc, char const* argv[])
  6. {
  7.  
  8.     if (argc != 2)
  9.     {
  10.         std::cout << "Usage: " << argv[0] << " <port>" << std::endl;
  11.         return EXIT_FAILURE;
  12.     }
  13.  
  14.     UDPServer udpserver(std::stoi(argv[1]));
  15.     udpserver.listenUDP();
  16.  
  17.     return EXIT_SUCCESS;
  18. }
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement