Need a unique gift idea?
A Pastebin account makes a great Christmas gift

stack overflow

a guest Aug 24th, 2014 3 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. unsigned int sr_addr=sock4request[4]|sock4request[5]|sock4request[6]|sock4request[7];
  2.                                 unsigned short sr_port=sock4request[2]|sock4request[3];
  3.                                 cout<<"yes"<<endl;
  4.                                 sr_addr=ntohl(sr_addr);
  5.                                 sr_port=ntohs(sr_port);
  6.                                 cout<<sr_addr<<":"<<sr_port<<endl;
  7.                                 //unsigned int ui_addr=sr_addr;
  8.                                 //unsigned short us_port=sr_port;
  9.                                 //boost::asio::ip::address_v4 addrip(addr);
  10.                                 string ip=boost::lexical_cast<string>(sr_addr);
  11.                                 string port=boost::lexical_cast<string>(sr_port);
  13.                                 //tcp::endpoint addrinfo(addrip,portint);
  14.                                 tcp::resolver resolver(io_service);
  15.                                 tcp::resolver::query query(ip,port);
  16.                                 tcp::resolver::iterator endpoint_iterator=resolver.resolve(query);
  17.                                 tcp::socket finalsocket(io_service);
  18.                                 boost::asio::connect(finalsocket,endpoint_iterator);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand