示例#1
0
文件: main.c 项目: shiyuebin07/geva
//²âÊÔQQºÅ
//ÕʺŠ      - ÃÜÂë
//2386953608 - 0123456789
//2421723768 - 0123456789
//847708268  - testtest
//1348186323 -012345678
int main(int agrc,char *argv[]){
	char qq[12];
	char passwd[16];
	int i=0;
	char in;
	printf("welcome to %s\n",eva_get_version());
	printf("QQ:");
	scanf("%s",qq);
	printf("Passwd:");
	while(1){
		in=getch();
		if(in=='\n'||in=='\r'||i==16) break;
		*(passwd+i)=in;
		fputc('*',stdout);
		i++;
	}
	*(passwd+i)='\0';

	EVA eva;    //ÉêÃ÷Ò»¸öEVA±äÁ¿
	eva_init(&eva);  //EVA³õʹ»¯
	int flag= eva_login(&eva,
              qq,passwd,EVA_ONLINE,
             "112.90.86.196|183.60.16.154|sz2.tencent.com|sz3.tencent.com|sz4.tencent.com|sz5.tencent.com|sz6.tencent.com",
	      UDP
             );
	if(flag==0) printf("net erro\n");
	if(flag==PASSWD_ERRO)printf("passwd erro");
	if(flag==ID_ERRO)printf("ID erro");
	if(flag==NO_ERRO)printf("go to jihuo");
	if(flag>0)  {eva_ad_012c(&eva); printf("run here");}
	Sleep(2000);
	return 1;
}
示例#2
0
int main (int argc, char **argv)
{
  eva_init (&argc, &argv, NULL);
  test_with_string ("hi mom");
  test_with_string ("<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-1\"><title>Google</title><style><!--\nbody,td,a,p,.h{font-family:arial,sans-serif;}\n.h{font-size: 20px;}\n.q{color:#0000cc;}\n//-->\n</style>\n<script>\n<!--\nfunction sf(){document.f.q.focus();}\n// -->\n</script>\n</head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onLoad=sf()><center><img src=\"/intl/en/images/logo.gif\" width=276 height=110 alt=\"Google\"><br><br>\n<form action=/search name=f><table border=0 cellspacing=0 cellpadding=4><tr><td nowrap><font size=-1><b>Web</b>&nbsp;&nbsp;&nbsp;&nbsp;<a id=1a class=q href=\"/imghp?hl=en&tab=wi&ie=UTF-8\">Images</a>&nbsp;&nbsp;&nbsp;&nbsp;<a id=2a class=q href=\"http://groups-beta.google.com/grphp?hl=en&tab=wg&ie=UTF-8\">Groups</a>&nbsp;&nbsp;&nbsp;&nbsp;<a id=4a class=q href=\"/nwshp?hl=en&tab=wn&ie=UTF-8\">News</a>&nbsp;&nbsp;&nbsp;&nbsp;<a id=5a class=q href=\"/frghp?hl=en&tab=wf&ie=UTF-8\">Froogle</a>&nbsp;&nbsp;&nbsp;&nbsp;<a id=7a class=q href=\"/lochp?hl=en&tab=wl&ie=UTF-8\">Local</a><sup><a href=\"/lochp?hl=en&tab=wl&ie=UTF-8\" style=\"text-decoration:none;\"><font color=red>New!</font></a></sup>&nbsp;&nbsp;&nbsp;&nbsp;<b><a href=\"/options/index.html\" class=q>more&nbsp;&raquo;</a></b></font></td></tr></table><table cellspacing=0 cellpadding=0><tr><td width=25%>&nbsp;</td><td align=center><input type=hidden name=hl value=en><input type=hidden name=ie value=\"ISO-8859-1\"><input maxLength=256 size=55 name=q value=\"\"><br><input type=submit value=\"Google Search\" name=btnG><input type=submit value=\"I'm Feeling Lucky\" name=btnI></td><td valign=top nowrap width=25%><font size=-2>&nbsp;&nbsp;<a href=/advanced_search?hl=en>Advanced Search</a><br>&nbsp;&nbsp;<a href=/preferences?hl=en>Preferences</a><br>&nbsp;&nbsp;<a href=/language_tools?hl=en>Language Tools</a></font></td></tr></table></form><br><br><font size=-1><a href=\"/ads/\">Advertising&nbsp;Programs</a> - <a href=/intl/en/about.html>About Google</a></font><p><font size=-2>&copy;2005 Google - Searching 8,058,044,651 web pages</font></p></center></body></html>");


  return 0;
}