2012年7月16日
摘要: 我有一个应用。1个后台服务线程:此线程接受客户端的请求,分为三种请求,一个图片,一个视频,一个音乐3个activity:分别显示图片、播放音乐、播放视频现在我需要交互,我的后台线程需要取到我的三个activity的各种状态,如:当前播放位置、当前是第几张图片。我改采用哪种方式? 我现在没有使用服务,全部使用的静态变量。感觉别扭,哪位大大帮我出个主意! 阅读全文
posted @ 2012-07-16 22:38 J.evan 阅读(169) 评论(0) 推荐(0) 编辑
摘要: linux下纯C简单的HTTP POST请求 客户端模型 ---经典收藏,源代码打包httppost.tar,感谢博主c直接访问网页 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <stdarg.h> 5 #include <sys/socket.h> 6 #include <netinet/in.h> 7 #include <netdb.h> 8 9 int htconnect(char *host, i 阅读全文
posted @ 2012-07-16 22:24 J.evan 阅读(909) 评论(0) 推荐(0) 编辑