摘要:
using System;
using System.Collections.Generic;
using System.Web;
using System.Net;
using System.IO; namespace His.WebService.Utility
{ public class FtpHelper { /// /// ftp方式上传 /// public static int UploadFtp(string filePath, string filename, string ftpSe... 阅读全文
随笔档案-2013年3月17日
利用cURL来获取网页信息-Using cURL to get webpage content
2013-03-17 20:29 by java20130722, 273 阅读, 收藏,
摘要:
#include #include #include #include #include extern "C" {
#include //#include #include } using namespace std; int writer(char* data, size_t size, size_t nmemb, string *buffer) { fprintf(stderr, "Hello, I am a function pointer\n"); int result = 0; if (buffer != NUL... 阅读全文
分享一个libevent server——cliserver
2013-03-17 12:05 by java20130722, 363 阅读, 收藏,
摘要:
/* * An event-driven server that handles simple commands from multiple clients. * If no command is received for 60 seconds, the client will be disconnected. * * Note that evbuffer_readline() is a potential source of denial of service, as * it does an O(n) scan for a newline character each time ... 阅读全文
浙公网安备 33010602011771号