Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <boost/format.hpp>
- #include <WinSock2.h>
- int connecttosite()
- {
- using namespace boost;
- SOCKET sct = WSASocket(AF_INET, SOCK_STREAM, 0, NULL, NULL, WSA_FLAG_OVERLAPPED);
- if (sct == INVALID_SOCKET)
- {
- cout << format("WSASocket failed with error code %1%.") % WSAGetLastError();
- return -1;
- }
- // WSAConnectByName(sct, TEXT(
- }
- int main()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement