Over a million developers have joined DZone.

CPP Web Crawler

DZone's Guide to

CPP Web Crawler

· ·
Free Resource
Another program I found in my old source code directory.  This looks like another web crawler designed to run in Windows.

// http.cpp : Defines the entry point for the console application.

#include "stdafx.h"

#define MAX_LENGTH 4096

void main()
          int s_len;
          int skt_Smtp;
          int success;
		  int i;
          struct sockaddr_in st_Sockaddr;
		  char                 recv_Buf[MAX_LENGTH];
          char send_Buf[MAX_LENGTH];

          //Initialize Sockets
          WSADATA wsa;
          WSAStartup(MAKEWORD(2, 0), &wsa);

          skt_Smtp = socket(AF_INET,SOCK_STREAM,0);
          if (skt_Smtp < 0)
              cout<< "Error Creating Socket"<
			i = MAX_LENGTH;
		printf("%-*.*s", i, i, recv_Buf);
	while(i != 0);



Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}