29 lines
430 B
C++
29 lines
430 B
C++
#include "src/sdk.h"
|
|
#include <boost/asio.hpp>
|
|
#include <iostream>
|
|
|
|
using namespace boost;
|
|
namespace sys = boost::system;
|
|
namespace net = boost::asio;
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
net::io_context ios;
|
|
|
|
net::ip::tcp protocol = net::ip::tcp::v4();
|
|
|
|
net::ip::tcp::socket socket(ios);
|
|
|
|
sys::error_code ec;
|
|
|
|
socket.open(protocol, ec);
|
|
|
|
if (ec.value())
|
|
{
|
|
cout << "Error!!" << endl;
|
|
}
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|