您好,欢迎光临本网站![请登录][注册会员]  
文件名称: google search client api for c/c++
  所属分类: C
  开发工具:
  文件大小: 174kb
  下载次数: 0
  上传时间: 2006-03-16
  提 供 者: cnsta*****
 详细说明: google search client api for c/c++ Google 网站上提供了goole search client api for Java和for dot.net的版本,大家可以参考. For C/C++的版本特点如下 内置XML解析器. 内置gbk/utf-8编码/解码器(包含GBK编码表) 采用Pure C编写,采用标准C接口. 支持http代理. 用户需要在http://api.google.com/createkey申请key 演示程序中的key是一个网友给我的,仅供测试用,演示程序中的代理可能连接不上,由于没有设置超时,可能处于等待状态(sorry.....) 函数中各个参数的意义和http://www.google.com/apis/reference.html的说明一样,对此不作过多的介绍. 建议在此基础上开发二次应用,如封装成COM,但不得对作者提供的api进行反编译. 如需转载,请注明原作者,谢谢合作. 欢迎交流. cnstar9988@hotmail.com 函数说明 /******************************************* *****************************/ /*google search client api for c/c++*/ /*By littlestar,2003,TRS Open Lab*/ /************************************************************************/ //go http://www.google.com/apis/reference.html for more information /*start primitive data types*/ #ifdef _SOAP_TYPES typedef char * xsd__string;;;; typedef int xsd__int;;;; struct xsd__base64Binary { unsigned char *__ptr;;;; int __size;;;; };;;; typedef bool xsd__boolean;;;; typedef double xsd__double;;;; /*end primitive data types*/ struct DirectoryCategoryArray { struct typens__DirectoryCategory * __ptr;;;; int __size;;;; int __offset;;;; };;;; struct typens__ResultElement { xsd__string summary;;;; xsd__string URL;;;; xsd__string snippet;;;; xsd__string title;;;; xsd__string cachedSize;;;; xsd__boolean relatedInformationPresent;;;; xsd__string hostName;;;; struct typens__DirectoryCategory * directoryCategory;;;; xsd__string directoryTitle;;;; };;;; struct typens__doGoogleSearchResponse { struct typens__GoogleSearchResult * _return_;;;; };;;; struct typens__DirectoryCategory { xsd__string fullViewableName;;;; xsd__string specialEncoding;;;; };;;; struct typens__GoogleSearchResult { xsd__boolean documentFiltering;;;; xsd__string searchComments;;;; xsd__int estimatedTotalResultsCount;;;; xsd__boolean estimateIsExact;;;; struct ResultElementArray * resultElements;;;; xsd__string searchQuery;;;; xsd__int startIndex;;;; xsd__int endIndex;;;; xsd__string searchTips;;;; struct DirectoryCategoryArray * directoryCategories;;;; xsd__double searchTime;;;; };;;; struct ResultElementArray { struct typens__ResultElement * __ptr;;;; int __size;;;; int __offset;;;; };;;; struct typens__doSpellingSuggestionResponse { xsd__string _return_;;;; };;;; struct typens__doGetCachedPageResponse { struct xsd__base64Binary * _return_;;;; };;;; #endif //建立Soap连接 extern ";;;C";;; int _stdcall CreateSoapSession(void **SoapSessionHandle,char *strServerAdd,char *key);;;; //设置代码服务器,支持http代理. extern ";;;C";;; int _stdcall SetSoapProxy(void *SoapSessionHandle,char *strProxyHost,int ProxyPort);;;; //页面检索 extern ";;;C";;; int _stdcall doGoogleSearch(void *SoapSessionHandle, xsd__string q, xsd__int start, xsd__int maxResults, xsd__boolean filter, xsd__string restrict_, xsd__boolean safeSearch, xsd__string lr, xsd__string ie, xsd__string oe, struct typens__doGoogleSearchResponse * out);;;; //取得google服务器上的缓存页面 extern ";;;C";;; int _stdcall doGetCachedPage(void *SoapSessionHandle, xsd__string url, struct typens__doGetCachedPageResponse * out );;;; //拼写检查 extern ";;;C";;; int _stdcall doSpellingSuggestion(void *SoapSessionHandle, xsd__string phrase, struct typens__doSpellingSuggestionResponse * out );;;; //取得SOAP错误消息 extern ";;;C";;; char* _stdcall GetSoapErrorMessage(void *SoapSessionHandle);;;; //释放SOAP缓存. extern ";;;C";;; int _stdcall FreeSoapCache(void *SoapSessionHandle);;;; //释放Soap连接 extern ";;;C";;; int _stdcall FreeSoapSession(void **SoapSessionHandle);;;; ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: 其他工具
 输入关键字,在本站1000多万海量源码库中尽情搜索: