1.第一种可以调用系统内部的短信程序.之前我曾经出现过一个bug就是报错:android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SENDTO ...
分类:
移动开发 时间:
2015-06-04 13:44:33
阅读次数:
225
send函数 int send( SOCKET s, const char FAR *buf, int len, int flags ); 不论是客户还是server应用程序都用send函数来向TCP连接的还有一端发送数据。客户程序一般用send函数向server发送请求,而server则通经常使用...
分类:
其他好文 时间:
2015-05-19 22:09:34
阅读次数:
163
read()/write()recv()/send()readv()/writev()recvmsg()/sendmsg()recvfrom()/sendto()
分类:
系统相关 时间:
2015-05-14 11:52:30
阅读次数:
138
跳转到发送短信页面Uri smsToUri = Uri.parse("smsto://10086");Intent mIntent = new Intent( android.content.Intent.ACTION_SENDTO, smsToUri );startActivity( mInten...
分类:
其他好文 时间:
2015-05-05 15:56:15
阅读次数:
142
相关函数:send, sendmsg, recv, recvfrom, socket头文件:#include #include 定义函数:int sendto(int s, const void * msg, int len, unsigned int flags, const structsoc....
分类:
编程语言 时间:
2015-04-23 09:27:24
阅读次数:
190
当我们右击某个文件或快捷方式时,在弹出的右键菜单中会有一个名为”发送到”的选项,通过它,我们可以将文件快速发送到菜单中的指定项目。而我们通过简单的定义系统的“发送到”菜单,也可以实现快速复制的功能。利用 shell:sendto 指令:要定义发送到菜单,需要先找到其位置:我们打开资源管理器,在地址栏...
分类:
其他好文 时间:
2015-03-15 13:36:13
阅读次数:
114
调用Message.obtain()从消息池中获得一个message对象,而不是直接new一个message对象,可以节省内存开销。也可以用handler.obtainMessage(),其实是一样的,obtainMessage()就是返回Message.obtain()message.sendTo...
分类:
移动开发 时间:
2015-03-14 23:11:56
阅读次数:
231
用户数据包协议(User Datagram Protocal, UDP),UDP服务器端和客户端均只需要 1 个套接字。在TCP中向 10 个客户端提供服务,则除了守门的服务器套接字之外,还需要 10 个服务器端套接字。UDP不保存连接状态,因此每次传输数据都要添加目标地址信息。#include ssize_t sendto(int sock, void *buf, si...
分类:
其他好文 时间:
2015-03-13 16:29:28
阅读次数:
170
1.UDP:面向无连接的传输层协议,不可靠,能满足时效性高的要求。2.模型:3.通信过程 1)socket()创建socket对象 2)bind()绑定IP端口 3)发送消息:sendto()/sendmsg() ssize_t sendto(int sockfd, const void *...
分类:
其他好文 时间:
2015-03-12 13:16:25
阅读次数:
120
首先列出这四个函数的原型:====================send/recv#include ssize_t recv(int sockfd, void *buff, size_t nbytes, int flags);ssize_t send(int sockfd, const void ...
分类:
其他好文 时间:
2015-02-23 13:06:35
阅读次数:
354