登录
首页 » Java » android在WiFi下手机与电脑的socket通信

android在WiFi下手机与电脑的socket通信

于 2014-07-02 发布
0 311
下载积分: 1 下载次数: 0

代码说明:

在wifi局域网下,手机可以和电脑通过socket通信。手机做服务端,电脑做客户端;也可以反过来,电脑做服务端,手机做客户端。下面介绍的是手机作为服务端,电脑使用MFC编程作为客户端,原理是,手机建立一个ServerSocket,并获取自己的ip地址和端口port;然后电脑通过socket连接手机的ip:port。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • android 百度地图应用实例源码下载
    android 百度地图应用实例源码下载
    2015-02-25下载
    积分:1
  • Android应用源码高仿墨迹天气引导界面
    Android应用源码高仿墨迹天气引导界面
    2015-02-20下载
    积分:1
  • android 唐诗宋词 app 完整源码下载
    android 唐诗宋词 app 完整源码下载
    2015-05-16下载
    积分:1
  • android画图实例源码下载
    android画图
    2015-03-07下载
    积分:1
  • android 闪屏及第一次进入的介绍界面 例子源码
    android 闪屏及第一次进入的介绍界面 例子源码
    2015-02-21下载
    积分:1
  • 漂亮的时间选择器
    一款封装好的类似iphone的时间选择器
    2020-09-29 11:37:44下载
    积分:1
  • android Imageloader 显示网络图片 例子源码
    android Imageloader 显示网络图片 例子源码
    2015-05-29下载
    积分:1
  • Audio音乐播放器
    Audio音乐播放器
    2013-05-14下载
    积分:1
  • android录音源码- 录制MP3语音 完整实例下载
    录制MP3语音
    2014-04-07下载
    积分:1
  • android联系人带字母检索源码
    android联系人带字母检索源码/** * 联系人列表适配器。 * * @author guolin */public class ContactAdapter extends ArrayAdapter { /** * 需要渲染的item布局文件 */ private int resource; /** * 字母表分组工具 */ private SectionIndexer mIndexer; public ContactAdapter(Context context, int textViewResourceId, List objects) { super(context, textViewResourceId, objects); resource = textViewResourceId; } @Override public View getView(int position, View convertView, ViewGroup parent) { Contact contact = getItem(position); LinearLayout layout = null; if (convertView == null) { layout = (LinearLayout) LayoutInflater.from(getContext()).inflate(resource, null); } else { layout = (LinearLayout) convertView; } TextView name = (TextView) layout.findViewById(R.id.name); LinearLayout sortKeyLayout = (LinearLayout) layout.findViewById(R.id.sort_key_layout); TextView sortKey = (TextView) layout.findViewById(R.id.sort_key); name.setText(contact.getName()); int section = mIndexer.getSectionForPosition(position); if (position == mIndexer.getPositionForSection(section)) { sortKey.setText(contact.getSortKey()); sortKeyLayout.setVisibility(View.VISIBLE); } else { sortKeyLayout.setVisibility(View.GONE); } return layout; } /** * 给当前适配器传入一个分组工具。 * * @param indexer */ public void setIndexer(SectionIndexer indexer) { mIndexer = indexer; }}
    2014-04-13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载